Adding self installation command for fabrica
This commit is contained in:
37
.packer/provisioning/playbooks/dc.yml
Normal file
37
.packer/provisioning/playbooks/dc.yml
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
- name: Configure Seth 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
|
||||
|
||||
- apt:
|
||||
name: make
|
||||
|
||||
- apt:
|
||||
name: git
|
||||
|
||||
- apt:
|
||||
name: python-ldap
|
||||
|
||||
- git:
|
||||
repo: 'https://forge.cadoles.com/afornerot/cadolesldap.git'
|
||||
dest: /tmp/cadolesldap
|
||||
|
||||
- name: Run 'install' for cadolesldap
|
||||
make:
|
||||
chdir: /tmp/cadolesldap
|
||||
target: install
|
||||
|
||||
- name: Cleanup
|
||||
apt:
|
||||
name: make
|
||||
state: absent
|
Reference in New Issue
Block a user