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

View File

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

View File

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

View File

@ -17,10 +17,13 @@
state: directory state: directory
mode: '0755' mode: '0755'
- name: Create .config/containers/systemd directory
shell: mkdir -p ~/.config/containers/systemd
- name: Copy bitcoin-node.container file - name: Copy bitcoin-node.container file
ansible.builtin.template: ansible.builtin.template:
src: bitcoin/bitcoin-node.container.j2 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 notify: reload_systemctl
- name: Create Containers/bitcoin Dir - name: Create Containers/bitcoin Dir

View File

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

View File

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