Files
@ 13982172ed2e
Branch filter:
Location: majic-ansible-roles/roles/bootstrap/tasks/main.yml - annotation
13982172ed2e
851 B
text/x-yaml
MAR-129: Updated mail_forwarder role for new Ansible and Molecule versions:
- Moved variables out of test playbook into group_vars.
- Fixed linting issues.
- Use top-level linting configuration file in tests.
- Updated how the hosts are referenced when executing the tests.
- Moved variables out of test playbook into group_vars.
- Fixed linting issues.
- Use top-level linting configuration file in tests.
- Updated how the hosts are referenced when executing the tests.
626eadba53b7 626eadba53b7 626eadba53b7 e4a0f78340ef e4a0f78340ef e4a0f78340ef 626eadba53b7 626eadba53b7 e4a0f78340ef e4a0f78340ef e4a0f78340ef 626eadba53b7 626eadba53b7 e4a0f78340ef e4a0f78340ef e4a0f78340ef e4a0f78340ef e4a0f78340ef 626eadba53b7 626eadba53b7 e4a0f78340ef e4a0f78340ef e4a0f78340ef 626eadba53b7 626eadba53b7 e4a0f78340ef e4a0f78340ef e4a0f78340ef e4a0f78340ef e4a0f78340ef e4a0f78340ef 61ddc6eab566 61ddc6eab566 e4a0f78340ef e4a0f78340ef e4a0f78340ef e4a0f78340ef 7387caca37f3 7387caca37f3 7387caca37f3 e4a0f78340ef 7387caca37f3 0388df2571ca | ---
- name: Install sudo
apt:
name: sudo
state: installed
- name: Set-up the Ansible group
group:
name: ansible
system: yes
- name: Set-up the Ansible user
user:
name: ansible
system: yes
group: ansible
shell: /bin/bash
- name: Set-up authorized key for the Ansible user
authorized_key:
user: ansible
key: "{{ ansible_key }}"
- name: Set-up password-less sudo for the ansible user
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
authorized_key:
user: root
key: "{{ ansible_key }}"
state: absent
- name: Explicitly run all handlers
include: ../handlers/main.yml
when: "handlers | default(False) | bool() : : True"
tags:
- handlers
|