Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
647 B

---
- hosts: '{{ host }}'
# Skip gather facts - host may not exist yet
gather_facts: false
tasks:
- name: 'lxc guest configuration'
import_role: name='lxc_guest'
vars:
vm_name: '{{ inventory_hostname }}'
delegate_to: '{{ ansible_lxc_host }}'
- name: 'CONNETION | use ssh_lxc'
set_fact: ansible_connection='ssh_lxc'
- name: 'gather facts - now the host must exist'
setup:
tags:
- 'always'
- name: 'ssh server offline configuration'
import_role: name='ssh_server'
- name: 'CONNECTION | use ssh [now host is online]'
set_fact: ansible_connection='ssh'
...