Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
niklep committed Apr 20, 2021
1 parent db5bdcf commit 70a985e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
redhat_packages:
- libselinux-python
- nmap
- htop
- open-vm-tools
- gpg
- sudo
- curl

debian_packages:
- nmap
- htop
- open-vm-tools
- gpg
- sudo
- curl

12 changes: 12 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: install packages for RedHat distr
yum:
name: "{{ redhat_packages }}"
state: latest
when: ansible_os_family == "RedHat"

- name: install packages for Debian based distr
apt:
pkg: "{{ debian_packages }}"
state: latest
when: ansible_os_family == "Debian"

0 comments on commit 70a985e

Please sign in to comment.