Makes installation of Ansible optional (default: no) and installs additional python libraries (#2)
Fixed accidental change of default update_hostname behaviour Makes installation of Ansible optional (default: no) and installs additional python libraries Co-authored-by: Jan Beilicke <dev@jotbe.io>
This commit is contained in:
parent
2953f200a1
commit
6335b7735a
3 changed files with 16 additions and 4 deletions
|
@ -12,16 +12,18 @@ Role Variables
|
|||
Defaults:
|
||||
|
||||
```
|
||||
hostname: {{ inventory_hostname }}
|
||||
update_hostname: no
|
||||
hostname: "{{ inventory_hostname }}"
|
||||
update_hostname: yes
|
||||
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)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# defaults file for common
|
||||
hostname: '{{ inventory_hostname }}'
|
||||
hostname: "{{ inventory_hostname }}"
|
||||
update_hostname: yes
|
||||
locales_gen:
|
||||
- en_US.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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue