mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-07 10:15:44 +03:00
feat(main): ditch ansible-semaphore and use ansible directly
This commit is contained in:
parent
22a4db5835
commit
2e8cc2f51a
30 changed files with 940 additions and 1440 deletions
26
ansible/playbooks/configure_host.yml
Normal file
26
ansible/playbooks/configure_host.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
- name: Configure host system
|
||||
hosts: host.ublue.local
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Add ublue.local entries to /etc/hosts
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hosts
|
||||
search_string: 127.0.0.1 rvproxy.ublue.local registry.ublue.local forge.ublue.local
|
||||
line: 127.0.0.1 rvproxy.ublue.local registry.ublue.local forge.ublue.local
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Add ublue.local TSL root certificate to trust anchors
|
||||
ansible.builtin.copy:
|
||||
src: /certs/tls/ublue-os_forge-root.pem
|
||||
dest: /etc/pki/ca-trust/source/anchors/ublue-os_forge-root.pem
|
||||
force: true
|
||||
mode: "0644"
|
||||
become: true
|
||||
|
||||
- name: Update ca-trust store
|
||||
ansible.builtin.command:
|
||||
cmd: update-ca-trust
|
||||
changed_when: false
|
||||
become: true
|
Loading…
Add table
Add a link
Reference in a new issue