Open joelin109 opened 7 years ago
ansible-playbook sample-playbook.yml
service: name=nginx state=started enabled=yes
-"Unable to start service nginx: Job for nginx.service failed because the control process
exited with error code. See \"systemctl status nginx.service\"
vars
tasks
shell
copy
src: 是指该yml文件对应的路径 (本地)
create a directory if it doesn't exist
file: path: /etc/some_directory state: directory mode: 0755
service ?
script ?
cron ?
name: Add cron job for 'storm recovery' cron: name="storm recovery" job="/usr/bin/storm-recovery" minute=*/5 state=present tags: guard
name : remove 'storm recovery' cron entry cron : name : storm recovery state : absent
debug
with_items