wip: ansible on alpine

This commit is contained in:
Yann Autissier
2022-10-13 00:52:38 +00:00
parent 54bf6bbbe0
commit 1203c9f005
35 changed files with 185 additions and 115 deletions
+18 -2
View File
@@ -1,7 +1,8 @@
---
# file: tasks/config.yml
- name: config - set MYOS config in /etc/default/myos
- name: config - set MYOS default config
become: true
with_items:
- APP_NAME={{ lookup('env','ANSIBLE_APP_NAME') }}
- APP_TYPE={{ lookup('env','ANSIBLE_APP_TYPE') }}
@@ -11,5 +12,20 @@
create: yes
line: '{{ item }}'
mode: '0644'
become: yes
- name: config - update MYOS default config
become: true
with_items: '{{hosts_default_env|default([])}}'
lineinfile:
path: /etc/default/myos
create: yes
line: "{{item}}={{lookup('env',item)}}"
mode: '0644'
- name: config - create /root/Makefile
become: true
template:
src: Makefile.j2
dest: ~/Makefile
force: yes