Add Ansible server preparation
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
- name: Prepare Platfom test server
|
||||||
|
hosts: test
|
||||||
|
become: true
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Create Platfom directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /opt/platform
|
||||||
|
state: directory
|
||||||
|
owner: deploy
|
||||||
|
group: deploy
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Create deployment marker
|
||||||
|
ansible.builtin.copy:
|
||||||
|
content: |
|
||||||
|
Platfom deployment server
|
||||||
|
Managed by Ansible
|
||||||
|
dest: /opt/platform/deployment.txt
|
||||||
|
owner: deploy
|
||||||
|
group: deploy
|
||||||
|
mode: '0644'
|
||||||
Reference in New Issue
Block a user