fabrica/packer/provisioning/playbooks/portal.yml

41 lines
799 B
YAML

---
- name: Configure Portal Server
hosts: all
environment:
http_proxy: "{{ lookup('env','http_proxy') }}"
https_proxy: "{{ lookup('env','https_proxy') }}"
HTTPS_PROXY: "{{ lookup('env','HTTPS_PROXY') }}"
HTTP_PROXY: "{{ lookup('env','HTTP_PROXY') }}"
tasks:
- name: Update package cache
apt:
update_cache: yes
- name: Maj-Auto
command: Maj-Auto
- name: Query-Auto Dev
expect:
command: Query-Auto -D
responses:
'\[non\]':
- "oui"
echo: yes
timeout: 900
- apt:
name: eole-ninegate
state: present
- apt:
name: ninegate-apps
state: present
- name: Query-Auto
command: Query-Auto
- name: Reconfigure
command: reconfigure