Use delegate_to instead of connection: local

This commit is contained in:
Patrick Uiterwijk 2015-10-08 00:04:57 +00:00
parent 6d8f8f3641
commit 3cbe8bd8d9

View file

@ -13,11 +13,11 @@
tasks:
- name: create new production ticket key
command: dd if=/dev/random of=/root/ticketkey_production.tkey bs=1 count=48
connection: local
delegate_to: batcave01.phx2.fedoraproject.org
- name: create new staging ticket key
command: dd if=/dev/random of=/root/ticketkey_staging.tkey bs=1 count=48
connection: local
delegate_to: batcave01.phx2.fedoraproject.org
- name: deploy ticket key
copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey_{{env}}.tkey