Files
@ da43302b84a7
Branch filter:
Location: majic-ansible-roles/roles/bootstrap/tasks/main.yml - annotation
da43302b84a7
960 B
text/x-yaml
MAR-218: Improve linter reporting in the test runner script:
- Show info messages on what linter is currently running, and
explicitly report success and failure.
- Show info messages on what linter is currently running, and
explicitly report success and failure.
626eadba53b7 626eadba53b7 626eadba53b7 c10934519e18 e4a0f78340ef 48a901602e77 626eadba53b7 626eadba53b7 c10934519e18 e4a0f78340ef 48a901602e77 626eadba53b7 626eadba53b7 c10934519e18 e4a0f78340ef 48a901602e77 e4a0f78340ef e4a0f78340ef 626eadba53b7 626eadba53b7 c10934519e18 e4a0f78340ef e4a0f78340ef 626eadba53b7 626eadba53b7 c10934519e18 e4a0f78340ef e4a0f78340ef 7cabc17c71c3 e4a0f78340ef e4a0f78340ef 61ddc6eab566 61ddc6eab566 c10934519e18 e4a0f78340ef e4a0f78340ef e4a0f78340ef 7387caca37f3 7387caca37f3 0c330b88956a fcf5abdd3ad5 7387caca37f3 0388df2571ca | ---
- name: Install sudo
ansible.builtin.apt:
name: sudo
state: present
- name: Set-up the Ansible group
ansible.builtin.group:
name: ansible
system: true
- name: Set-up the Ansible user
ansible.builtin.user:
name: ansible
system: true
group: ansible
shell: /bin/bash
- name: Set-up authorized key for the Ansible user
ansible.posix.authorized_key:
user: ansible
key: "{{ ansible_key }}"
- name: Set-up password-less sudo for the ansible user
ansible.builtin.copy:
src: "ansible_sudo"
dest: "/etc/sudoers.d/ansible"
mode: "0640"
owner: root
group: root
- name: Revoke rights for Ansible user to log-in as root to server via ssh
ansible.posix.authorized_key:
user: root
key: "{{ ansible_key }}"
state: absent
- name: Explicitly run all handlers
ansible.builtin.import_tasks: ../handlers/main.yml
when: "run_handlers | default(False) | bool()"
tags:
- handlers
|