Skip to content

Instantly share code, notes, and snippets.

@ownport
Last active August 3, 2021 05:10
Show Gist options
  • Select an option

  • Save ownport/474beb2c9776df59c8da to your computer and use it in GitHub Desktop.

Select an option

Save ownport/474beb2c9776df59c8da to your computer and use it in GitHub Desktop.
ansible: install wget
- name: Install wget package (Debian based)
action: apt pkg='wget' state=installed
only_if: "'$ansible_pkg_mgr' == 'apt'"
- name: Install wget package (RedHat based)
action: yum name='wget' state=installed
only_if: "'$ansible_pkg_mgr' == 'yum'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment