Makes installation of Ansible optional (default: no) and installs additional python libraries #2
3 changed files with 16 additions and 4 deletions
|
@ -12,16 +12,18 @@ Role Variables
|
||||||
Defaults:
|
Defaults:
|
||||||
|
|
||||||
```
|
```
|
||||||
hostname: {{ inventory_hostname }}
|
hostname: "{{ inventory_hostname }}"
|
||||||
update_hostname: no
|
update_hostname: no
|
||||||
locales_gen:
|
locales_gen:
|
||||||
- en_US.UTF-8
|
- en_US.UTF-8
|
||||||
- de_DE.UTF-8
|
- de_DE.UTF-8
|
||||||
locales_default: de_DE.UTF-8
|
locales_default: de_DE.UTF-8
|
||||||
|
x11_keymap: de
|
||||||
users:
|
users:
|
||||||
- vagrant
|
- vagrant
|
||||||
sudoers:
|
sudoers:
|
||||||
- vagrant
|
- vagrant
|
||||||
|
enable_ansible: no
|
||||||
# Will install a specific Ansible version on the target host
|
# Will install a specific Ansible version on the target host
|
||||||
ensure_ansible_version: 2.10.3
|
ensure_ansible_version: 2.10.3
|
||||||
# Allow sudo with a password (applied to group sudo)
|
# Allow sudo with a password (applied to group sudo)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# defaults file for common
|
# defaults file for common
|
||||||
hostname: '{{ inventory_hostname }}'
|
hostname: "{{ inventory_hostname }}"
|
||||||
update_hostname: yes
|
update_hostname: no
|
||||||
locales_gen:
|
locales_gen:
|
||||||
- en_US.UTF-8
|
- en_US.UTF-8
|
||||||
- de_DE.UTF-8
|
- de_DE.UTF-8
|
||||||
|
@ -11,6 +11,10 @@ users:
|
||||||
- vagrant
|
- vagrant
|
||||||
sudoers:
|
sudoers:
|
||||||
- vagrant
|
- vagrant
|
||||||
|
enable_ansible: no
|
||||||
|
# Will install a specific Ansible version on the target host
|
||||||
ensure_ansible_version: 2.10.3
|
ensure_ansible_version: 2.10.3
|
||||||
|
# Allow sudo with a password (applied to group sudo)
|
||||||
enable_sudo: yes
|
enable_sudo: yes
|
||||||
|
# Allow passwordless sudo (applied to group wheel)
|
||||||
enable_passwordless_sudo: yes
|
enable_passwordless_sudo: yes
|
|
@ -32,6 +32,8 @@
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- python-pip
|
- python-pip
|
||||||
|
- python-setuptools
|
||||||
|
- python-virtualenv
|
||||||
- htop
|
- htop
|
||||||
- tmux
|
- tmux
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -44,6 +46,9 @@
|
||||||
#update_cache: yes
|
#update_cache: yes
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
|
- python-pip
|
||||||
|
- python-setuptools
|
||||||
|
- python-virtualenv
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- htop
|
- htop
|
||||||
- tmux
|
- tmux
|
||||||
|
@ -52,4 +57,5 @@
|
||||||
|
|
||||||
- name: Install Ansible
|
- name: Install Ansible
|
||||||
pip:
|
pip:
|
||||||
name: ansible=={{ ensure_ansible_version }}
|
name: ansible=={{ ensure_ansible_version }}
|
||||||
|
when: enable_ansible
|
Loading…
Add table
Reference in a new issue