roles/bootstrap/tasks/main.yml

Mon, 22 Oct 2018 20:45:59 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 22 Oct 2018 20:45:59 -0500
changeset 82
ae08d6315368
parent 76
9c024e39a565
child 88
3dbfd253c775
permissions
-rw-r--r--

update debian-backports repo

---
- name: "Ansible control user"
  user:
    name: ansible
    comment: "Ansible Controller"
    home: /var/lib/ansible
    createhome: true
    append: true
    system: true
    state: present

- name: "Ansible pubkeys"
  authorized_key:
    manage_dir: true
    user: ansible
    key: "{{item}}"
  with_file:
    - 'public_keys/ansible'

- name: "Ansible sudo"
  lineinfile:
    dest: /etc/sudoers
    state: present
    regexp: '^ansible'
    line: 'ansible ALL=(ALL) NOPASSWD: ALL'
    validate: 'visudo -cf "%s"'

- include: disable-stock.yml
  when: disable_stock_users

mercurial