myos/ansible/roles/hosts/tasks/config.yml

16 lines
359 B
YAML
Raw Normal View History

2021-07-15 00:58:24 +02:00
---
# file: tasks/config.yml
- name: config - set MYOS config in /etc/default/myos
with_items:
2022-06-22 10:02:09 +02:00
- APP_NAME={{ lookup('env','ANSIBLE_APP_NAME') }}
2022-06-04 02:24:35 +02:00
- APP_TYPE={{ lookup('env','ANSIBLE_APP_TYPE') }}
2021-07-15 00:58:24 +02:00
- MYOS={{ lookup('env','ANSIBLE_MYOS') }}
2022-01-09 17:32:54 +01:00
lineinfile:
path: /etc/default/myos
create: yes
line: '{{ item }}'
mode: '0644'
2021-07-15 00:58:24 +02:00
become: yes