Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created November 26, 2012 21:29
Show Gist options
  • Save hpk42/4150734 to your computer and use it in GitHub Desktop.
Save hpk42/4150734 to your computer and use it in GitHub Desktop.
# content of playbook
- name: copy apache.pem
file: path=/etc/apache2/ssl state=directory
copy: src=$item dest=/etc/apache2/ssl/ owner=root mode=600
with_fileglob: files/ssl/*
# shown when i execute it with ansible-playbook
TASK: [copy apache.pem] *********************
ok: [hq2] => (item=files/ssl/apache.pem)
ok: [hq2] => (item=files/ssl/server.key)
ok: [hq2] => (item=files/ssl/mydomain.crt)
# but the files are not there!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment