Files
Lakehouse/ansible/playbook.yml
T

39 lines
1.1 KiB
YAML
Raw Normal View History

---
# Deploy ATC Lakehouse from git (run from atc-docker01 or control node with mesh SSH)
- name: ATC Lakehouse — docker01 stack
hosts: atc-docker01
become: true
tasks:
- name: Ensure repo present
git:
repo: http://atc-mgt01.dell-atc.lan:3001/mo/Lakehouse.git
dest: /root/lakehouse
version: master
force: false
- name: Deploy homepage + RSS + icons
command: docker compose -f deploy/docker-compose.homepage.yml up -d --build
args:
chdir: /root/lakehouse
- name: Deploy superset
command: docker compose -f compose/superset/docker-compose.yaml up -d --build
args:
chdir: /root/lakehouse
- name: Revalidate homepage
command: docker exec homepage wget -qO- http://127.0.0.1:3000/api/revalidate
changed_when: false
failed_when: false
- name: Sync /etc/hosts on fleet
hosts: all
become: true
tasks:
- name: Append ATC hosts block
blockinfile:
path: /etc/hosts
marker: "# {mark} ATC Lakehouse lab"
block: "{{ lookup('file', '../config/hosts/atc-lab.hosts') }}"
when: ansible_user != 'admin'