quoting and escaping
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
cron:
|
cron:
|
||||||
name: "generate SSH key on reboot, if missing"
|
name: "generate SSH key on reboot, if missing"
|
||||||
job: 'KEYS=(/etc/ssh/ssh_host_*_key); (( ${#KEYS[@]} )) || ( ssh-keygen -A && systemctl restart {{ ssh_service }} )'
|
job: "KEYS=(/etc/ssh/ssh_host_*_key); (( \${#KEYS[@]} )) || ( ssh-keygen -A && systemctl restart {{ ssh_service }} )"
|
||||||
state: present
|
state: present
|
||||||
special_time: reboot
|
special_time: reboot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user