Use shell when deploying FreeIPA

Using command works but we get no logs of the deployment command
because the command module masks away the redirection operators.
https://blog.confirm.ch/ansible-modules-shell-vs-command/

Change-Id: Ib5fb3a76e0bd205791c6264cd3c2151618153108
This commit is contained in:
Michele Baldessari 2018-01-16 11:33:57 +01:00
parent 6d9fdaa2c8
commit ffa0d7cc35
1 changed files with 1 additions and 1 deletions

View File

@ -21,4 +21,4 @@
- name: Deploy FreeIPA
become: true
command: "~{{ supplemental_user }}/deploy_freeipa.sh &> ~{{ supplemental_user }}/deploy_freeipa.log"
shell: "~{{ supplemental_user }}/deploy_freeipa.sh &> ~{{ supplemental_user }}/deploy_freeipa.log"