Add simple playbook and .gitigonore
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.vscode
|
||||||
16
frontend/playbook.yml
Normal file
16
frontend/playbook.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
- name: Configure a frontend server
|
||||||
|
hosts: server
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: install git
|
||||||
|
apt:
|
||||||
|
name: git
|
||||||
|
state: latest
|
||||||
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
|
- name: clone repo with script
|
||||||
|
ansible.builtin.git:
|
||||||
|
clone: https://github.com/d3m0k1d/automation-scripts.git
|
||||||
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
Reference in New Issue
Block a user