Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samsulmaarif/5019430b441b2c695de31ae0ed351a81 to your computer and use it in GitHub Desktop.
Save samsulmaarif/5019430b441b2c695de31ae0ed351a81 to your computer and use it in GitHub Desktop.
## Ubuntu & Debian family
ansible docker-class -i docker-hosts -m raw -a "/usr/bin/apt install -y python" -u root
ansible docker-class -i docker-hosts -m ping -u root
## openSUSE
ansible all -i hosts -m raw -a "zypper install -y python" -u samsul --become --become-user root --ask-become-pass
ansible all -i hosts -m ping -u samsul
[docker-class]
ip1
ip2
ip3
dst...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment