12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- ---
- - hosts: all
- become: yes
- become_user: root
- become_method: sudo
- gather_facts: yes
- vars_files:
- - vars/main.yml
- pre_tasks:
- - name: Update Apt Cache
- apt: update_cache=yes cache_valid_time=86400
- when: ansible_os_family == "Debian"
- {% raw %}
- - name: Ubuntu Packages
- apt: >
- pkg={{item}}
- state=installed
- with_items:
- - htop
- - iotop
- - git
- - sysstat
- - vim
- - tmux
- - tree
- - tcpdump
- - unzip
- when: ansible_os_family == "Debian"
- - name: CentOS packages
- yum: pkg={{item}} state=installed
- with_items:
- - bind-utils
- - sysstat
- - tmux
- - wget
- - git
- - vim-enhanced
- - iotop
- - tree
- - tcpdump
- when: ansible_distribution == "CentOS"
- {% endraw %}
- roles:
- {% for dep in cookiecutter.dependencies.split(',') %}
- - {{ dep.split('/')[-1] }}
- {% endfor %}
|