fix: dont use atm user
This commit is contained in:
parent
4e7f4b6be6
commit
800a6b6ebc
7 changed files with 4 additions and 9 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
|
||||
- name: Install mCaptcha binary
|
||||
hosts: mcaptcha_hosts
|
||||
remote_user: atm
|
||||
vars_files:
|
||||
- vars/mcaptcha/vars.yml
|
||||
roles:
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
---
|
||||
- name: Ping all servers
|
||||
hosts: all
|
||||
remote_user: atm
|
||||
|
||||
tasks:
|
||||
- name: Ensure all VMs are reachable
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue