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
|
- name: Install and enable firewall
|
||||||
hosts: all
|
hosts: all
|
||||||
remote_user: atm
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Ensure all VMs are reachable
|
- name: Ensure all VMs are reachable
|
||||||
ansible.builtin.ping:
|
ansible.builtin.ping:
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
- name: Install redis cache
|
- name: Install redis cache
|
||||||
hosts: mcaptcha_hosts
|
hosts: mcaptcha_hosts
|
||||||
remote_user: atm
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Ensure all VMs are reachable
|
- name: Ensure all VMs are reachable
|
||||||
ansible.builtin.ping:
|
ansible.builtin.ping:
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
- name: Configure Locust instances
|
- name: Configure Locust instances
|
||||||
hosts: [mcaptcha_dos]
|
hosts: [mcaptcha_dos]
|
||||||
remote_user: atm
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Ensure all VMs are reachable
|
- name: Ensure all VMs are reachable
|
||||||
ansible.builtin.ping:
|
ansible.builtin.ping:
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
|
|
||||||
- name: Install mCaptcha binary
|
- name: Install mCaptcha binary
|
||||||
hosts: mcaptcha_hosts
|
hosts: mcaptcha_hosts
|
||||||
remote_user: atm
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/mcaptcha/vars.yml
|
- vars/mcaptcha/vars.yml
|
||||||
roles:
|
roles:
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
---
|
---
|
||||||
- name: Ping all servers
|
- name: Ping all servers
|
||||||
hosts: all
|
hosts: all
|
||||||
remote_user: atm
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure all VMs are reachable
|
- name: Ensure all VMs are reachable
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
name: docker
|
name: docker
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Add user atm to docker group
|
- name: Add user to docker group
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: atm # TODO: add admin user to docker group
|
name: "{{ ansible_user_id }}"
|
||||||
groups: docker,users,admin
|
groups: docker,users,admin
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
# Set this to the user ansible is logging in as - should have root
|
# Set this to the user ansible is logging in as - should have root
|
||||||
# or sudo access
|
# or sudo access
|
||||||
mysql_user_home: /home/atm
|
mysql_user_home: "/home/{{ ansible_user_id }}"
|
||||||
mysql_user_name: atm
|
mysql_user_name: "{{ ansible_user_id }}"
|
||||||
|
|
||||||
# The default root user installed by mysql - almost always root
|
# The default root user installed by mysql - almost always root
|
||||||
mysql_root_home: /root
|
mysql_root_home: /root
|
||||||
|
|
Loading…
Reference in a new issue