Initial commit
This commit is contained in:
commit
dfa0e72d5f
3 changed files with 43 additions and 0 deletions
23
tasks/main.yml
Normal file
23
tasks/main.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: Create user for software deployment
|
||||
ansible.builtin.user:
|
||||
name: srs-deploy
|
||||
home: /var/www/nemunai.re/srs
|
||||
create_home: false
|
||||
password: '*'
|
||||
state: present
|
||||
|
||||
- name: Ensure srs-deploy home exists
|
||||
file:
|
||||
path: "/var/www/nemunai.re/{{ item }}"
|
||||
owner: root
|
||||
state: directory
|
||||
loop:
|
||||
- srs
|
||||
- adlin
|
||||
|
||||
- name: Define authorized key for srs-deploy
|
||||
ansible.posix.authorized_key:
|
||||
user: srs-deploy
|
||||
state: present
|
||||
key: "{{ ssh_key_srs_deploy }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue