Sun, 14 Jul 2019 02:45:55 -0500
separate disable_stock_users role
group_vars/all.yml | file | annotate | diff | comparison | revisions | |
local.yml | file | annotate | diff | comparison | revisions | |
roles/bootstrap/defaults/main.yml | file | annotate | diff | comparison | revisions | |
roles/bootstrap/tasks/disable-stock.yml | file | annotate | diff | comparison | revisions | |
roles/bootstrap/tasks/main.yml | file | annotate | diff | comparison | revisions | |
roles/disable_stock_users/tasks/main.yml | file | annotate | diff | comparison | revisions |
--- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -6,3 +6,7 @@ gui_session: "i3" dotfiles_default: https://bitbucket.org/merrilymeredith/dotfiles dotfiles_default_push: ssh://mhoward@roomag.org/proj/dotfiles + +bootstrap_ansible_controller: false +disable_stock_users: true +
--- a/local.yml +++ b/local.yml @@ -2,8 +2,13 @@ - name: Devbox Setup hosts: all roles: - - role: bootstrap - tags: bootstrap - devbox - user + tasks: + - include_role: + name: bootstrap + when: bootstrap_ansible_controller + - include_role: + name: disable_stock_users + when: disable_stock_users
deleted file mode 100644 --- a/roles/bootstrap/defaults/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -disable_stock_users: false -
--- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -13,7 +13,7 @@ authorized_key: manage_dir: true user: ansible - key: "{{item}}" + key: "{{ item }}" with_file: - 'public_keys/ansible' @@ -24,6 +24,3 @@ regexp: '^ansible' line: 'ansible ALL=(ALL) NOPASSWD: ALL' validate: 'visudo -cf "%s"' - -- include: disable-stock.yml - when: disable_stock_users