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

25 lines
508 B
YAML
Raw Normal View History

2021-07-15 00:58:24 +02:00
---
# file: tasks/config.yml
2022-01-09 17:32:54 +01:00
- name: config - do not run docker-compose in docker - arch != x86
2021-07-15 00:58:24 +02:00
when: ansible_machine|lower != "x86_64"
2022-01-09 17:32:54 +01:00
with_items:
- DOCKER=false
lineinfile:
path: /etc/default/myos
create: yes
line: '{{ item }}'
mode: '0644'
2021-07-15 00:58:24 +02:00
become: yes
- name: config - set MYOS config in /etc/default/myos
with_items:
- 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