From 1351f5cb576def1393860bc11cffc1a7f6be4d2e Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 18 Sep 2020 17:17:43 +0200 Subject: [PATCH] update modules --- roles/akku-warning | 2 +- roles/authorized_keys | 2 +- roles/install-firefox | 2 +- roles/networkmanager/tasks/versioncheck.yml | 12 +++++-- roles/networkmanager/vars/main.yml | 4 +-- roles/no-sleep | 2 +- roles/ntp | 2 +- roles/pulseaudio | 2 +- roles/steam/tasks/versioncheck.yml | 40 --------------------- 9 files changed, 17 insertions(+), 51 deletions(-) delete mode 100644 roles/steam/tasks/versioncheck.yml diff --git a/roles/akku-warning b/roles/akku-warning index f4880a5..a1e2982 160000 --- a/roles/akku-warning +++ b/roles/akku-warning @@ -1 +1 @@ -Subproject commit f4880a5c290eeb7e78d0d5f72bf253faeac51814 +Subproject commit a1e2982b3d26bdf6849e5fb8aaccd92c78338a6b diff --git a/roles/authorized_keys b/roles/authorized_keys index 6c8446f..2442657 160000 --- a/roles/authorized_keys +++ b/roles/authorized_keys @@ -1 +1 @@ -Subproject commit 6c8446fd35edbf1411c75ee81945f8299f382b87 +Subproject commit 2442657b9655cf50778dbb5873812c9beeaabe7f diff --git a/roles/install-firefox b/roles/install-firefox index b558c35..ee9709d 160000 --- a/roles/install-firefox +++ b/roles/install-firefox @@ -1 +1 @@ -Subproject commit b558c359fb9fb95593bb304f0d5b62787a39511f +Subproject commit ee9709d0fcd563e54dd928655f5d0f0c285d5b31 diff --git a/roles/networkmanager/tasks/versioncheck.yml b/roles/networkmanager/tasks/versioncheck.yml index 767cd5c..7977e52 100644 --- a/roles/networkmanager/tasks/versioncheck.yml +++ b/roles/networkmanager/tasks/versioncheck.yml @@ -2,7 +2,7 @@ - name: Create directory for versionscheck become: true file: - path: '/etc/ansible-version' + path: '/etc/.ansible-version' state: directory mode: 0755 when: submodules_versioncheck|bool @@ -10,7 +10,7 @@ - name: check playbook version become: true slurp: - src: "{{ playbook_version_path }}" + src: "/etc/.ansible-version/{{ playbook_version_path }}" register: playbook_version when: submodules_versioncheck|bool ignore_errors: yes @@ -32,9 +32,15 @@ when: - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool +- name: check if '/etc/ansible-version/' is empty + find: + paths: '/etc/ansible-version/' + register: filesFound + - name: write new version to remote disk become: true copy: content: "{{ playbook_version_number }}" - dest: "{{ playbook_version_path }}" + dest: "/etc/.ansible-version/{{ playbook_version_path }}" + mode: 0644 when: submodules_versioncheck|bool diff --git a/roles/networkmanager/vars/main.yml b/roles/networkmanager/vars/main.yml index 09ca1ba..d8c2a33 100644 --- a/roles/networkmanager/vars/main.yml +++ b/roles/networkmanager/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 9000 # should be over ninethousand -playbook_version_path: '/etc/ansible-version/role-networkmanager_chaos-bodensee_github.com.version' +playbook_version_number: 9001 # should be over ninethousand +playbook_version_path: 'role-networkmanager_roles-ansible_github.com.version' diff --git a/roles/no-sleep b/roles/no-sleep index 18baf04..2bc3e2f 160000 --- a/roles/no-sleep +++ b/roles/no-sleep @@ -1 +1 @@ -Subproject commit 18baf04895219e7711ff747cff662902b7ef0f58 +Subproject commit 2bc3e2f5f613b4bad21f6bd098516a8101f52f13 diff --git a/roles/ntp b/roles/ntp index c6335cc..fcd8349 160000 --- a/roles/ntp +++ b/roles/ntp @@ -1 +1 @@ -Subproject commit c6335cc479d8b5b1664c37e6ed521d608b89eedb +Subproject commit fcd83491f8fdb4f6f0c48f7f5163db10a8937be5 diff --git a/roles/pulseaudio b/roles/pulseaudio index cabbed7..048b4c9 160000 --- a/roles/pulseaudio +++ b/roles/pulseaudio @@ -1 +1 @@ -Subproject commit cabbed7f903e76bdca0dba25888b860558dacab5 +Subproject commit 048b4c9cacc9adf53b4fcd730be86b0d1d37956d diff --git a/roles/steam/tasks/versioncheck.yml b/roles/steam/tasks/versioncheck.yml deleted file mode 100644 index 767cd5c..0000000 --- a/roles/steam/tasks/versioncheck.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Create directory for versionscheck - become: true - file: - path: '/etc/ansible-version' - state: directory - mode: 0755 - when: submodules_versioncheck|bool - -- name: check playbook version - become: true - slurp: - src: "{{ playbook_version_path }}" - register: playbook_version - when: submodules_versioncheck|bool - ignore_errors: yes - failed_when: false - -- name: Print remote role version - debug: - msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}" - when: submodules_versioncheck|bool - -- name: Print locale role version - debug: - msg: "Local role version: '{{ playbook_version_number|string }}'." - when: submodules_versioncheck|bool - -- name: Check if your version is outdated - fail: - msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!" - when: - - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool - -- name: write new version to remote disk - become: true - copy: - content: "{{ playbook_version_number }}" - dest: "{{ playbook_version_path }}" - when: submodules_versioncheck|bool