Primeros commits
This commit is contained in:
parent
707b014ae9
commit
95d9d08762
|
@ -18,7 +18,7 @@
|
|||
- ansible.builtin.include_role:
|
||||
name: init_lxd
|
||||
#vars:
|
||||
# - lxd_init_template_config_path="/path/to/my/template"
|
||||
# - lxd_init_template_config_path="/path/to/my/custom/template"
|
||||
|
||||
|
||||
## Rollback
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
|
@ -7,7 +7,7 @@
|
|||
classic: yes
|
||||
|
||||
- ansible.builtin.debug:
|
||||
var:
|
||||
var: hostvars[inventory_hostname]['ansible_default_ipv6']['address']
|
||||
verbosity: 1
|
||||
|
||||
- delegate_to: localhost
|
||||
|
@ -33,4 +33,3 @@
|
|||
|
||||
- ansible.builtin.debug:
|
||||
var: lxd_init_output
|
||||
verbosity: 2
|
||||
|
|
|
@ -10,7 +10,6 @@ networks:
|
|||
ipv4.address: {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}
|
||||
# IPv6
|
||||
ipv6.nat: "true"
|
||||
ipv6.address: {{ hostvars[inventory_hostname]['ansible_default_ipv6']['address'] }}
|
||||
name: lxdbr0
|
||||
type: bridge
|
||||
project: default
|
||||
|
|
1902
Playbooks/test.json
1902
Playbooks/test.json
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue