Primeros commits

This commit is contained in:
RDF 2022-07-17 01:35:08 -03:00
parent 707b014ae9
commit 95d9d08762
7 changed files with 3 additions and 1934 deletions

View File

View File

View File

@ -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

View File

@ -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/

View File

@ -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

View File

@ -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

File diff suppressed because one or more lines are too long