roles/bootstrap/tasks/main.yml

Fri, 23 Jun 2017 20:06:46 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 23 Jun 2017 20:06:46 -0400
changeset 74
87a637974823
parent 73
8b0c09efbb5b
child 76
9c024e39a565
permissions
-rw-r--r--

firefox got less wonky

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

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

- name: "Bootstrap : 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