From 5b56f9cfc9888ba4b7ad41fbd39581e9babea755 Mon Sep 17 00:00:00 2001 From: chirac Date: Sun, 8 Nov 2020 18:13:21 +0100 Subject: [PATCH] Revert "Use command instead of shell" This reverts commit 0f9169284f9696e54976843c129030f3af8834f7. --- roles/isc_dhcp_server/handlers/main.yml | 2 +- roles/isc_dhcp_server/tasks/main.yml | 5 ++--- roles/radius/tasks/main.yml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/roles/isc_dhcp_server/handlers/main.yml b/roles/isc_dhcp_server/handlers/main.yml index fd4dd48..05b48c6 100644 --- a/roles/isc_dhcp_server/handlers/main.yml +++ b/roles/isc_dhcp_server/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: force run dhcp re2o-service - command: /var/local/re2o-services/dhcp/main.py --force + shell: /var/local/re2o-services/dhcp/main.py --force become_user: re2o-services - name: restart dhcpd diff --git a/roles/isc_dhcp_server/tasks/main.yml b/roles/isc_dhcp_server/tasks/main.yml index f3ffe54..e198163 100644 --- a/roles/isc_dhcp_server/tasks/main.yml +++ b/roles/isc_dhcp_server/tasks/main.yml @@ -17,8 +17,7 @@ state: directory owner: re2o-services group: nogroup - recurse: true - mode: u=rwX,g=rX,o=rX + recurse: yes - name: Install isc-dhcp-server apt: @@ -102,7 +101,7 @@ when: is_aurore_host - name: force run dhcp re2o-service - command: /var/local/re2o-services/dhcp/main.py --force + shell: /var/local/re2o-services/dhcp/main.py --force - name: Ensure dhcpd is running service: diff --git a/roles/radius/tasks/main.yml b/roles/radius/tasks/main.yml index 22cbf40..4d9a748 100644 --- a/roles/radius/tasks/main.yml +++ b/roles/radius/tasks/main.yml @@ -103,7 +103,7 @@ when: "'aurore_vm' in group_names" - name: Install radius requirements (except freeradius-python3) - command: + shell: cmd: "{{ item }}" chdir: /var/www/re2o/ loop: