Add some basic packages on Archlinux; Pin Ansible version
This commit is contained in:
parent
d6dbd7d30a
commit
36695dc7e8
2 changed files with 20 additions and 4 deletions
|
@ -11,3 +11,4 @@ users:
|
||||||
- vagrant
|
- vagrant
|
||||||
sudoers:
|
sudoers:
|
||||||
- vagrant
|
- vagrant
|
||||||
|
ensure_ansible_version: 2.10.3
|
|
@ -4,6 +4,7 @@
|
||||||
become: true
|
become: true
|
||||||
hostname:
|
hostname:
|
||||||
name: '{{ hostname }}'
|
name: '{{ hostname }}'
|
||||||
|
use: systemd
|
||||||
when: hostname and update_hostname == True
|
when: hostname and update_hostname == True
|
||||||
|
|
||||||
- name: Firewall
|
- name: Firewall
|
||||||
|
@ -23,10 +24,20 @@
|
||||||
become: true
|
become: true
|
||||||
when: ansible_facts['os_family'] == 'Debian'
|
when: ansible_facts['os_family'] == 'Debian'
|
||||||
|
|
||||||
- include: ansible-debian.yml
|
- name: Install basic packages (on Archlinux)
|
||||||
become: true
|
pacman:
|
||||||
|
name: "{{ packages }}"
|
||||||
|
state: present
|
||||||
|
#update_cache: yes
|
||||||
|
vars:
|
||||||
|
packages:
|
||||||
|
- python-pip
|
||||||
|
- htop
|
||||||
|
- tmux
|
||||||
|
become: yes
|
||||||
|
when: ansible_facts['os_family'] == 'Archlinux'
|
||||||
|
|
||||||
- name: Install basic packages
|
- name: Install basic packages (on Debian)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
|
@ -38,3 +49,7 @@
|
||||||
- tmux
|
- tmux
|
||||||
become: yes
|
become: yes
|
||||||
when: ansible_facts['os_family'] == 'Debian'
|
when: ansible_facts['os_family'] == 'Debian'
|
||||||
|
|
||||||
|
- name: Install Ansible
|
||||||
|
pip:
|
||||||
|
name: ansible=={{ ensure_ansible_version }}
|
Loading…
Add table
Reference in a new issue