Add basics role as submodule
This commit is contained in:
parent
7119b0f8f5
commit
166daf50db
5 changed files with 5 additions and 9 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "roles/basics"]
|
||||
path = roles/basics
|
||||
url = https://github.com/7adietri/ansible-basics.git
|
|
@ -25,8 +25,7 @@ benötigt. Für diesen muss ein SSH-Key hinterlegt sein.
|
|||
|
||||
./site
|
||||
|
||||
Das Skript installiert externe Rollen und führt dann das Playbook `site.yml`
|
||||
aus.
|
||||
Das Skript führt das Playbook `site.yml` mit dem Inventar `production` aus.
|
||||
|
||||
Zum Testen kann noch `-C` angehängt werden.
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
- src: https://github.com/7adietri/ansible-basics.git
|
||||
version: v1.1.1
|
||||
name: basics
|
1
roles/basics
Submodule
1
roles/basics
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 987dfd48a1fb0cad45ba78d9a96dd76bb7e14ef9
|
3
site
3
site
|
@ -1,6 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
ANSIBLE_ROLES_PATH="$HOME/.ansible/roles"
|
||||
|
||||
ansible-galaxy install -f -r requirements.yml
|
||||
ansible-playbook site.yml -i production -bK $*
|
||||
|
|
Loading…
Reference in a new issue