|
@@ -1,7 +1,7 @@
|
|
|
---
|
|
|
- name: Dependencies installed
|
|
|
community.general.pkgng:
|
|
|
- name: gtar,py38-pillow,py38-pip,py38-configobj,py38-cheetah3,py38-ephem,py38-sqlite3
|
|
|
+ name: gtar,py39-pillow,py39-pip,py39-configobj,py39-cheetah3,py39-ephem,py39-sqlite3
|
|
|
state: latest
|
|
|
|
|
|
- name: Nginx conf file installed
|
|
@@ -12,7 +12,7 @@
|
|
|
notify: Nginx restarted
|
|
|
|
|
|
- name: Python binary linked
|
|
|
- file: src=/usr/local/bin/python3.8 dest=/usr/local/bin/python state=link
|
|
|
+ file: src=/usr/local/bin/python3.9 dest=/usr/local/bin/python state=link
|
|
|
|
|
|
- name: WeeWX src folder exists
|
|
|
file:
|
|
@@ -30,28 +30,28 @@
|
|
|
|
|
|
- name: WeeWX source unpacked
|
|
|
unarchive:
|
|
|
- src: https://weewx.com/downloads/weewx-4.7.0.tar.gz
|
|
|
+ src: http://weewx.com/downloads/weewx-4.10.2.tar.gz
|
|
|
dest: /usr/local/src/weewx
|
|
|
remote_src: yes
|
|
|
|
|
|
- name: WeeWX GW1000 driver fetched
|
|
|
get_url:
|
|
|
- url: https://github.com/gjr80/weewx-gw1000/releases/download/v0.2.0/gw1000-0.2.0.tar.gz
|
|
|
- dest: /usr/local/src/weewx/gw1000-0.2.0.tar.gz
|
|
|
+ url: https://github.com/gjr80/weewx-gw1000/releases/download/v0.5.0b5/gw1000-0.5.0b5.tar.gz
|
|
|
+ dest: /usr/local/src/weewx/gw1000-0.5.0b5.tar.gz
|
|
|
|
|
|
- name: WeeWX GW1000 driver installed
|
|
|
shell:
|
|
|
- chdir: /usr/local/src/weewx/weewx-4.7.0/bin
|
|
|
- cmd: python3.8 wee_extension --install=/usr/local/src/weewx/gw1000-0.2.0.tar.gz
|
|
|
+ chdir: /usr/local/src/weewx/weewx-4.10.2/bin
|
|
|
+ cmd: python3.9 wee_extension --install=/usr/local/src/weewx/gw1000-0.5.0b5.tar.gz
|
|
|
|
|
|
- name: WeeWX built
|
|
|
- shell: python3.8 ./setup.py build
|
|
|
+ shell: python3.9 ./setup.py build
|
|
|
args:
|
|
|
- chdir: /usr/local/src/weewx/weewx-4.7.0
|
|
|
+ chdir: /usr/local/src/weewx/weewx-4.10.2
|
|
|
|
|
|
- name: WeeWX skin files copied
|
|
|
ansible.builtin.copy:
|
|
|
- src: /usr/local/src/weewx/weewx-4.7.0/skins
|
|
|
+ src: /usr/local/src/weewx/weewx-4.10.2/skins
|
|
|
dest: /var/weewx/
|
|
|
remote_src: yes
|
|
|
|
|
@@ -66,7 +66,7 @@
|
|
|
- name: WeeWX historygenerator installed
|
|
|
ansible.builtin.copy:
|
|
|
src: historygenerator.py
|
|
|
- dest: /usr/local/src/weewx/weewx-4.7.0/bin/user/
|
|
|
+ dest: /usr/local/src/weewx/weewx-4.10.2/bin/user/
|
|
|
|
|
|
- name: WeeWX rc file installed
|
|
|
ansible.builtin.copy:
|
|
@@ -78,7 +78,7 @@
|
|
|
|
|
|
- name: WeeWX skin files copied
|
|
|
ansible.builtin.copy:
|
|
|
- src: /usr/local/src/weewx/weewx-4.7.0/skins
|
|
|
+ src: /usr/local/src/weewx/weewx-4.10.2/skins
|
|
|
dest: /var/weewx/
|
|
|
remote_src: yes
|
|
|
|
|
@@ -92,12 +92,11 @@
|
|
|
command: "unzip -o sofaskin-cw9009-latest.zip"
|
|
|
args:
|
|
|
chdir: /var/weewx/skins
|
|
|
- warn: false
|
|
|
|
|
|
- name: WeeWX first report generated
|
|
|
shell:
|
|
|
- chdir: /usr/local/src/weewx/weewx-4.7.0/bin
|
|
|
- cmd: python3.8 wee_reports
|
|
|
+ chdir: /usr/local/src/weewx/weewx-4.10.2/bin
|
|
|
+ cmd: python3.9 wee_reports
|
|
|
|
|
|
- name: WeeWX started
|
|
|
service:
|