Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
80 Test ansible make module for pigpio
Browse files Browse the repository at this point in the history
  • Loading branch information
veerendra2 committed Oct 8, 2023
1 parent 776e0c4 commit df1fae8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ $ cd raspberrypi-homeserver
$ ansible-playbook main.yml
```
### NOTE
* The setup created to deploy all services on single node docker swarm cluster. If you want to use this setup on multi node swarm cluster, there are some additional tweaks required like
* Change plancement
* This setup is created to deploy all services on single node docker swarm cluster. If you want to use this setup on multi node swarm cluster, there are some additional tweaks required like
* Change placement
```yaml
...
deploy:
Expand All @@ -222,12 +222,13 @@ $ ansible-playbook main.yml
constraints: [node.role == manager]
...
```
* Currently I'm using duckdns sub-domain. Refer my [blog post](https://veerendra2.github.io/traefik-https) to get more info.
* Currently I'm using duckdns sub-domain (Refer example -> [services/traefik/docker-stack.yml#32](./services/traefik/docker-stack.yml#32)). Refer my [blog post](https://veerendra2.medium.com/traefik-https-config-with-duckdns-for-local-homeserver-c55db9971683) to get more info.
* Update docker volume mount paths.

## Related Blogs
* [Portainer vs Yacht](https://veerendra2.github.io/portainer-vs-yacht)
* [Pi-hole with DHCP Relay in Docker](https://veerendra2.github.io/pihole-dhcp-relay)
* [Wireguard VPN and BitTorrent on Docker Swarm (Part 1)](https://veerendra2.github.io/wireguard-qbittorrent-docker-swarm-1)
* [Wireguard VPN and BitTorrent on Docker Swarm (Part 2)](https://veerendra2.github.io/wireguard-qbittorrent-docker-swarm-2)
* [Traefik HTTPS Config with DuckDNS for Local Homeserver](https://veerendra2.github.io/traefik-https)
* [Portainer vs Yacht](https://veerendra2.medium.com/portainer-vs-yacht-316405b9e867)
* [Pi-hole with DHCP Relay in Docker](https://veerendra2.medium.com/pi-hole-with-dhcp-relay-in-docker-cef397922e5a)
* [Wireguard VPN and BitTorrent on Docker Swarm (Part 1)](https://veerendra2.medium.com/wireguard-vpn-and-bittorrent-on-docker-swarm-part-1-1100b4115cc0)
* [Wireguard VPN and BitTorrent on Docker Swarm (Part 2)](https://veerendra2.medium.com/wireguard-vpn-and-bittorrent-on-docker-swarm-part-2-b92a251ba873)
* [Traefik HTTPS Config with DuckDNS for Local Homeserver](https://veerendra2.medium.com/traefik-https-config-with-duckdns-for-local-homeserver-c55db9971683)
* [How to Deploy rest-server(Restic) on Docker Swarm Behind Traefik Reverse Proxy](https://dev.to/veerendra2/how-to-deploy-rest-serverrestic-on-docker-swarm-behind-traefik-reverse-proxy-4a8h)
24 changes: 13 additions & 11 deletions tasks/pigpio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
dest: "{{ tempdir.path }}"
owner: "{{ run_user }}"
mode: '0440'
# TODO need to test!
- name: Extract pigpio
ansible.builtin.unarchive:
src: "{{ tempdir.path }}/master.zip"
dest: "{{ tempdir.path }}"

- name: Build and install pigpio
community.general.make:
chdir: "{{ tempdir.path }}"
target: install
params:
NUM_THREADS: 2
- name: Extract pigpio

Check failure on line 15 in tasks/pigpio.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 syntax error: expected <block end>, but found '-' (syntax)
ansible.builtin.unarchive:
src: "{{ tempdir.path }}/pigpio-master.zip"
dest: "{{ tempdir.path }}"
remote_src: true

- name: Build and install pigpio
community.general.make:
chdir: "{{ tempdir.path }}/pigpio-master"
target: install
params:
NUM_THREADS: 2
become: true

- name: Set systemd unit parameters for pigpiod
ansible.builtin.set_fact:
Expand Down

0 comments on commit df1fae8

Please sign in to comment.