env-ansible/tasks/users.yml

21 lines
756 B
YAML

# TODO This does not work in FreeBSD yet.
#TASK [Create Ansible User] *****************************************************
#fatal: [freeboy]: FAILED! => {"changed": false, "msg": "pw: the password db file is busy\n", "name": "hyper", "rc": 1}
#changed: [localhost]
#
#TASK [Add Ansible Sudoers File] ************************************************
#fatal: [localhost]: FAILED! => {"changed": false, "checksum": "154cc146010b36e25502dfe9a7f6b09fec8bbf43", "msg": "Destination directory /etc/sudoers.d does not exist"}
- name: Create Ansible User
user:
name: ansible
system: yes
- name: Add Ansible Sudoers File
copy:
src: sudoers_ansible
dest: "{{ sudoers_install_dir }}"
owner: root
group: "{{ root_group }}"
mode: 0440