diff --git a/tasks/main.yml b/tasks/main.yml index 13908de..cd239a5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -50,6 +50,6 @@ become: yes when: ansible_facts['os_family'] == 'Debian' -# - name: Install Ansible -# pip: -# name: ansible=={{ ensure_ansible_version }} \ No newline at end of file +- name: Install Ansible + pip: + name: ansible=={{ ensure_ansible_version }} \ No newline at end of file diff --git a/tasks/users.yml b/tasks/users.yml index 5c38204..f3a88b9 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -35,8 +35,9 @@ user: "{{ item }}" state: present key: "{{ lookup('file', 'public_keys/id_{{ item }}.pub') }}" + exclusive: "{{ authorized_keys_are_exclusive | bool }}" with_items: "{{ users }}" - ignore_errors: yes + ignore_errors: true - name: 'Ensure that wheel group is existing' group: