aboutsummaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/system')
-rw-r--r--src/system/files/dnf.conf9
-rw-r--r--src/system/files/systemd/sys/wireguard.service14
-rw-r--r--src/system/files/systemd/user/syncthing.service13
-rw-r--r--src/system/tasks/main.yaml25
4 files changed, 2 insertions, 59 deletions
diff --git a/src/system/files/dnf.conf b/src/system/files/dnf.conf
deleted file mode 100644
index a3f55fb..0000000
--- a/src/system/files/dnf.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-[main]
-gpgcheck=1
-installonly_limit=3
-clean_requirements_on_remove=True
-best=False
-skip_if_unavailable=True
-defaultyes=True
-max_parallel_downloads=10
-deltarpm=True
diff --git a/src/system/files/systemd/sys/wireguard.service b/src/system/files/systemd/sys/wireguard.service
deleted file mode 100644
index 76a2968..0000000
--- a/src/system/files/systemd/sys/wireguard.service
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Wireguard
-After=network-online.target
-Wants=network-online.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=true
-User=root
-ExecStart=/usr/bin/wg-quick up wg0
-ExecStop=/usr/bin/wg-quick down wg0
-
-[Install]
-WantedBy=multi-user.target
diff --git a/src/system/files/systemd/user/syncthing.service b/src/system/files/systemd/user/syncthing.service
deleted file mode 100644
index 67fa2cd..0000000
--- a/src/system/files/systemd/user/syncthing.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Syncthing podman container
-After=network-online.target
-Wants=network-online.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=true
-ExecStart=/usr/bin/podman-compose -f /home/aaditya/containers/syncthing/compose.yaml up -d
-ExecStop=/usr/bin/podman-compose -f /home/aaditya/containers/syncthing/compose.yaml down
-
-[Install]
-WantedBy=multi-user.target
diff --git a/src/system/tasks/main.yaml b/src/system/tasks/main.yaml
index f03c02b..626f70a 100644
--- a/src/system/tasks/main.yaml
+++ b/src/system/tasks/main.yaml
@@ -1,26 +1,4 @@
-- name: Wireguard Setup
- block:
- - name: Install Wireguard
- ansible.builtin.dnf:
- name: wireguard-tools
- state: latest
- - name: Copy Wireguard configuartion
- ansible.builtin.copy:
- src: "{{ config.system.wireguard.wg_path }}"
- dest: /etc/wireguard/
- backup: yes
- - name: Setup WG Systemd service
- ansible.builtin.copy:
- src: "systemd/sys/wireguard.service"
- dest: /etc/systemd/system/
- backup: yes
- - name: Enable wireguard service
- systemd:
- state: started
- name: wireguard.service
- when: 'config.system.install_wireguard'
-
-- name: Systemd setups
+- name: Setup Systemd Services/Timers - User
block:
- name: Copying user systemd configs
ansible.builtin.copy:
@@ -36,6 +14,7 @@
state: started
name: "{{ item }}.service"
loop: "{{ systemd }}"
+ ignore_errors: true
when: 'config.system.install_systemd'