fix: dont use atm user

This commit is contained in:
Aravinth Manivannan 2023-12-09 03:30:10 +05:30
parent 4e7f4b6be6
commit 800a6b6ebc
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
7 changed files with 4 additions and 9 deletions

View File

@ -5,7 +5,6 @@
---
- name: Install and enable firewall
hosts: all
remote_user: atm
pre_tasks:
- name: Ensure all VMs are reachable
ansible.builtin.ping:

View File

@ -7,7 +7,6 @@
- name: Install redis cache
hosts: mcaptcha_hosts
remote_user: atm
pre_tasks:
- name: Ensure all VMs are reachable
ansible.builtin.ping:

View File

@ -7,7 +7,6 @@
- name: Configure Locust instances
hosts: [mcaptcha_dos]
remote_user: atm
pre_tasks:
- name: Ensure all VMs are reachable
ansible.builtin.ping:

View File

@ -42,7 +42,6 @@
- name: Install mCaptcha binary
hosts: mcaptcha_hosts
remote_user: atm
vars_files:
- vars/mcaptcha/vars.yml
roles:

View File

@ -5,7 +5,6 @@
---
- name: Ping all servers
hosts: all
remote_user: atm
tasks:
- name: Ensure all VMs are reachable

View File

@ -39,8 +39,8 @@
name: docker
state: present
- name: Add user atm to docker group
- name: Add user to docker group
become: true
ansible.builtin.user:
name: atm # TODO: add admin user to docker group
name: "{{ ansible_user_id }}"
groups: docker,users,admin

View File

@ -1,8 +1,8 @@
---
# Set this to the user ansible is logging in as - should have root
# or sudo access
mysql_user_home: /home/atm
mysql_user_name: atm
mysql_user_home: "/home/{{ ansible_user_id }}"
mysql_user_name: "{{ ansible_user_id }}"
# The default root user installed by mysql - almost always root
mysql_root_home: /root