diff --git a/README.md b/README.md index 3ca7ab7..e1d11fe 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/defaults/main.yml b/defaults/main.yml index 3b7f2fd..fb6f250 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index cd239a5..14d5ca8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 }} \ No newline at end of file + name: ansible=={{ ensure_ansible_version }} + when: enable_ansible \ No newline at end of file