Skip to content

Instantly share code, notes, and snippets.

@zdtsw
Last active November 13, 2017 10:43
Show Gist options
  • Select an option

  • Save zdtsw/8deb5cd45884dbe7ab2d59e9f5d40e15 to your computer and use it in GitHub Desktop.

Select an option

Save zdtsw/8deb5cd45884dbe7ab2d59e9f5d40e15 to your computer and use it in GitHub Desktop.
ansible information from work experience
ISSUE:
in module "unarchive"
- owner and group only set the file after decompress but not the folders
- need to use "file" module and recurse=yes set owner and group on the "top" folder after unarchive
Template:
use variable in template, ansible would set value during this template is called
use -force can overwrite any difference on target machine's template file with current one in ansible (after variable replace with value)
UPDATE on Ubunut:
have "sudo apt-get install python-pip" done
sudo pip install ansible --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment