Markus Katharina Brechtel 4 лет назад
Родитель
Сommit
0faf340f46
4 измененных файлов: 15 добавлений и 3 удалений
  1. +3
    -2
      Taskfile.yml
  2. +2
    -1
      common.yaml
  3. +4
    -0
      inventory
  4. +6
    -0
      lxd.yaml

+ 3
- 2
Taskfile.yml Просмотреть файл

@@ -7,6 +7,7 @@ tasks:
- terraform init
- terraform apply -auto-approve
- ansible-playbook -i inventory -i inventory.json common.yaml
wordpress:
- ansible-playbook -i inventory -i inventory.json lxd.yaml
clean:
cmds:
- ansible-playbook -i inventory -i inventory.json wordpress.yaml
- terraform destroy -auto-approve

+ 2
- 1
common.yaml Просмотреть файл

@@ -1,6 +1,7 @@
---

- hosts: vmst
- hosts:
- lxd_hosts
remote_user: root
roles:
- role: common

+ 4
- 0
inventory Просмотреть файл

@@ -1 +1,5 @@
[vms]
lxd-test

[lxd_hosts]
lxd-test

+ 6
- 0
lxd.yaml Просмотреть файл

@@ -0,0 +1,6 @@
---

- hosts: lxd_hosts
remote_user: root
roles:
- role: lxd

Загрузка…
Отмена
Сохранить