initial commit
This commit is contained in:
commit
800836b2d9
23 changed files with 609 additions and 0 deletions
9
roles/install-packages/tasks/deb.yml
Normal file
9
roles/install-packages/tasks/deb.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
- name: install packages (Debian/Ubuntu)
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: latest
|
||||
with_items:
|
||||
- "{{ common_pkgs }}"
|
||||
- dnsutils
|
14
roles/install-packages/tasks/el.yml
Normal file
14
roles/install-packages/tasks/el.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
|
||||
- name: install packages (RHEL/CentOS/Fedora)
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: latest
|
||||
with_items:
|
||||
- "{{ common_pkgs }}"
|
||||
- iperf3
|
||||
- nmap
|
||||
- lvm2
|
||||
- bind-utils
|
||||
- psmisc # may work on deb/ubuntu also? - provides killall
|
||||
- wget
|
20
roles/install-packages/tasks/main.yml
Normal file
20
roles/install-packages/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
- include_tasks: deb.yml
|
||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||
|
||||
- include_tasks: el.yml
|
||||
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora"] and not is_atomic
|
||||
|
||||
# Need an idempotent way to install packages on atomic
|
||||
# command module isn't idempotent and the package module insists on installing containers.
|
||||
|
||||
#- name: install packages (fedora - atomic)
|
||||
# command: rpm-ostree install '{{ item }}'
|
||||
# with_items:
|
||||
# - htop
|
||||
# - vim
|
||||
# - iperf3
|
||||
# - strace
|
||||
# - nmap
|
||||
# when: ansible_distribution == 'Fedora' and is_atomic
|
Loading…
Add table
Add a link
Reference in a new issue