This commit is contained in:
b0xxer 2024-02-11 12:39:53 -06:00
parent 79386b54ab
commit 588550c11b
6 changed files with 33 additions and 7 deletions

25
hosts
View File

@ -1,14 +1,28 @@
# Server Names and their IP Addresses Go Here
[bitb0x]
192.168.2.103
[n0xb0x]
192.168.2.119
#192.168.2.103
# Each Server should have a "vars" block like below to set individual settings for each
#
[bitb0x:vars]
#[bitb0x:vars]
#app_list=['bitcoin.yml']
#ansible_user=b0xxy
#ansible_password=b0xxy
##registry_url=git.boxxy.net/b0xxer/
#registry_url=localhost
#registry_user=
#registry_pass=
#bitcoin_version=26.0
#bitcoin_rpcpassword=rVhfmriXjB8uFekmn7sLvnUiY610JaOx
#zerotier_network=
[n0xb0x:vars]
app_list=['bitcoin.yml']
ansible_user=b0xxy
ansible_password=b0xxy
ansible_user=n0xb0x
ansible_password=n0xb0x
coreos=true
#registry_url=git.boxxy.net/b0xxer/
registry_url=localhost
registry_user=
@ -17,3 +31,4 @@ bitcoin_version=26.0
bitcoin_rpcpassword=rVhfmriXjB8uFekmn7sLvnUiY610JaOx
zerotier_network=

View File

@ -1,6 +1,6 @@
---
- hosts: bitb0x
- hosts: n0xb0x
vars:
roles:

View File

@ -5,3 +5,8 @@
ansible.builtin.shell:
chdir: ~/Containers/bitcoin
cmd: ./build.sh
- name: reload_systemctl
ansible.builtin.systemd_service:
daemon_reload: true
scope: user

View File

@ -17,10 +17,13 @@
state: directory
mode: '0755'
- name: Create .config/containers/systemd directory
shell: mkdir -p ~/.config/containers/systemd
- name: Copy bitcoin-node.container file
ansible.builtin.template:
src: bitcoin/bitcoin-node.container.j2
dest: /home/b0xxy/.config/containers/systemd/bitcoin-node.container
dest: /home/{{ ansible_user }}/.config/containers/systemd/bitcoin-node.container
notify: reload_systemctl
- name: Create Containers/bitcoin Dir

View File

@ -33,6 +33,7 @@
service: cockpit
permanent: yes
state: enabled
when: coreos==True
- name: Enable Avahi Service
become: yes
@ -49,6 +50,7 @@
service: mdns
permanent: yes
state: enabled
when: coreos==True
- name: Modify nsswitch file for mdns lookups
become: yes

View File

@ -38,6 +38,7 @@
- cockpit-ostree
- cockpit-podman
- zerotier-one
- python3-firewall
- name: Reboot System
become: yes