Makes installation of Ansible optional (default: no) and installs additional python libraries

This commit is contained in:
Jan Beilicke 2021-03-27 14:27:02 +01:00
parent 2953f200a1
commit 2a27db4ba8
3 changed files with 16 additions and 4 deletions

View file

@ -12,16 +12,18 @@ Role Variables
Defaults:
```
hostname: {{ inventory_hostname }}
hostname: "{{ inventory_hostname }}"
update_hostname: no
locales_gen:
- en_US.UTF-8
- de_DE.UTF-8
locales_default: de_DE.UTF-8
x11_keymap: de
users:
- vagrant
sudoers:
- vagrant
enable_ansible: no
# Will install a specific Ansible version on the target host
ensure_ansible_version: 2.10.3
# Allow sudo with a password (applied to group sudo)

View file

@ -1,7 +1,7 @@
---
# defaults file for common
hostname: '{{ inventory_hostname }}'
update_hostname: yes
hostname: "{{ inventory_hostname }}"
update_hostname: no
locales_gen:
- en_US.UTF-8
- de_DE.UTF-8
@ -11,6 +11,10 @@ users:
- vagrant
sudoers:
- vagrant
enable_ansible: no
# Will install a specific Ansible version on the target host
ensure_ansible_version: 2.10.3
# Allow sudo with a password (applied to group sudo)
enable_sudo: yes
# Allow passwordless sudo (applied to group wheel)
enable_passwordless_sudo: yes

View file

@ -32,6 +32,8 @@
vars:
packages:
- python-pip
- python-setuptools
- python-virtualenv
- htop
- tmux
become: yes
@ -44,6 +46,9 @@
#update_cache: yes
vars:
packages:
- python-pip
- python-setuptools
- python-virtualenv
- apt-transport-https
- htop
- tmux
@ -52,4 +57,5 @@
- name: Install Ansible
pip:
name: ansible=={{ ensure_ansible_version }}
name: ansible=={{ ensure_ansible_version }}
when: enable_ansible