diff --git a/ansible/roles/argus_pat/tasks/main.yml b/ansible/roles/argus_pat/tasks/main.yml index 6dfc9ad..7ea20fa 100644 --- a/ansible/roles/argus_pat/tasks/main.yml +++ b/ansible/roles/argus_pat/tasks/main.yml @@ -1,4 +1,4 @@ -# Role: scanner_pat +# Role: argus_pat # This installs and configures pat winlink client on the scanner.bus computer # @@ -6,17 +6,17 @@ file: path: "{{item}}" state: directory - owner: busnet - group: busnet + owner: argus + group: argus mode: u=rwx,g=rwx,o=rx with_items: - - /opt/busnet/pat - - /opt/busnet/pat/config - - /opt/busnet/pat/forms - - /opt/busnet/pat/logs - - /opt/busnet/pat/mbox - - /opt/busnet/pat/packages - - /opt/busnet/pat/prehooks + - /opt/argus/pat + - /opt/argus/pat/config + - /opt/argus/pat/forms + - /opt/argus/pat/logs + - /opt/argus/pat/mbox + - /opt/argus/pat/packages + - /opt/argus/pat/prehooks ################################################################################################### # Install pat from .deb release files @@ -29,9 +29,9 @@ - name: Copy Pat config file template: src: "templates/config.json.j2" - dest: "/opt/busnet/pat/config/config.json" - owner: busnet - group: busnet + dest: "/opt/argus/pat/config/config.json" + owner: argus + group: argus ################################################################################################### # SYSTEMD diff --git a/ansible/roles/argus_pat/templates/config.json.j2 b/ansible/roles/argus_pat/templates/config.json.j2 index 2c6949e..b96b83d 100644 --- a/ansible/roles/argus_pat/templates/config.json.j2 +++ b/ansible/roles/argus_pat/templates/config.json.j2 @@ -9,7 +9,7 @@ ], "http_addr": "[::]:8080", "motd": [ - "BusNet Pat Winlink Client" + "Argus Pat Winlink Client" ], "connect_aliases": { "telnet": "telnet://{mycall}:CMSTelnet@cms.winlink.org:8772/wl2k" @@ -22,10 +22,10 @@ "rig": "" }, "ax25_linux": { - "port": "ax0" + "port": "digirig" }, "agwpe": { - "addr": "scanner.busnet:8005", + "addr": "localhost:8005", "radio_port": 0 }, "serial-tnc": { @@ -77,4 +77,4 @@ }, "schedule": {}, "version_reporting_disabled": false -} \ No newline at end of file +} diff --git a/ansible/roles/argus_pat/templates/pat.service.j2 b/ansible/roles/argus_pat/templates/pat.service.j2 index 1eae6a4..711dd9e 100644 --- a/ansible/roles/argus_pat/templates/pat.service.j2 +++ b/ansible/roles/argus_pat/templates/pat.service.j2 @@ -1,12 +1,12 @@ [Unit] -Description=BusNet Pat Winlink Client +Description=Argus Pat Winlink Client Documentation=https://github.com/la5nta/pat/wiki After=ax25.service network.target [Service] -User=busnet -Group=busnet -ExecStart=/usr/bin/pat --config /opt/busnet/pat/config/config.json --event-log /opt/busnet/pat/logs/eventlog.json --log /opt/busnet/pat/logs/pat.log --forms /opt/busnet/pat/forms --mbox /opt/busnet/pat/mbox --prehooks /opt/busnet/pat/prehooks http +User=argus +Group=argus +ExecStart=/usr/bin/pat --config /opt/argus/pat/config/config.json --event-log /opt/argus/pat/logs/eventlog.json --log /opt/argus/pat/logs/pat.log --forms /opt/argus/pat/forms --mbox /opt/argus/pat/mbox --prehooks /opt/argus/pat/prehooks http Restart=on-failure [Install]