Commit 5ec09489 authored by k.elaammari's avatar k.elaammari
Browse files

Changed ansible module: Shell supports redirects

parent 81eb9104
......@@ -24,7 +24,10 @@
mode: "0440"
- name: "Create authorized_keys file"
command: "cat /home/root/.ssh/authorized_keys.d/* > /home/root/.ssh/authorized_keys"
shell:
executable: "/bin/bash"
chdir: "/root/.ssh"
cmd: "cat authorized_keys.d/* > authorized_keys"
- include: playbooks/iptables.yml
\ No newline at end of file
- include: playbooks/iptables.yml
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment