Browse Source

lxd test

master
parent
commit
0faf340f46
4 changed files with 15 additions and 3 deletions
  1. +3
    -2
      Taskfile.yml
  2. +2
    -1
      common.yaml
  3. +4
    -0
      inventory
  4. +6
    -0
      lxd.yaml

+ 3
- 2
Taskfile.yml View File

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

+ 2
- 1
common.yaml View File

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


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

+ 4
- 0
inventory View File

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

[lxd_hosts]
lxd-test

+ 6
- 0
lxd.yaml View File

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

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

Loading…
Cancel
Save