Open crpb opened 2 months ago
Hey,
seems like the update-task as described upgrades to next release if the system is already on that desired_version with an underscore in the version /o.
i guess it's this logic but haven't looked any deeper yet.
or is that somewhat by design?
Hey,
seems like the update-task as described upgrades to next release if the system is already on that desired_version with an underscore in the version /o.
i guess it's this logic but haven't looked any deeper yet.
log of 'ansible-playbook -v -e opn_update_desired_version=24.1.10_8 update.yaml ..'
```bash ~/ansible/cb/opnsense (git)-[main] % ssh 192.168.1.5 opnsense-version OPNsense 24.1.10_8 ~/ansible/cb/opnsense (git)-[main] % cat update.yaml - name: opnsense hosts: - opnsense - opnsensetest vars: ansible_become: false roles: - role: ansible-opnsense-facts tags: - opnsense - facts - role: ansible-opnsense-plugpack tags: - opnsense - plugpack - role: ansible-opnsense-update tags: - opnsense - update # - role: ansible-opnsense-checkmk # tags: # - opnsense # - checkmk ~/ansible/cb/opnsense (git)-[main] % ansible-playbook -v -e opn_update_desired_version=24.1.10_8 update.yaml -l 192.168.1.5 Using /home/cb/.ansible.cfg as config file _________________ < PLAY [opnsense] > ----------------- \ / \ //\ \ |\___/| / \// \\ /0 0 \__ / // | \ \ / / \/_/ // | \ \ @_^_@'/ \/_ // | \ \ //_^_/ \/_ // | \ \ ( //) | \/// | \ \ ( / /) _|_ / ) // | \ _\ ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-. (( / / )) ,-{ _ `-.|.-~-. .~ `. (( // / )) '/\ / ~-. _ .-~ .-~^-. \ (( /// )) `. { } / \ \ (( / )) .----~-.\ \-' .~ \ `. \^-. ///.----..> \ _ -~ `. ^-` ^-_ ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~ /.-~ ________________________ < TASK [Gathering Facts] > ------------------------ \ \ . .---. // Y|o o|Y// /_(i=i)K/ ~()~*~()~ (_)-(_) Darth Vader koala ok: [192.168.1.5] ________________________________________________________ < TASK [ansible-opnsense-facts : custom facts directory] > -------------------------------------------------------- \ \ .::!!!!!!!:. .!!!!!:. .:!!!!!!!!!!!! ~~~~!!!!!!. .:!!!!!!!!!UWWW$$$ :$$NWX!!: .:!!!!!!XUWW$$$$$$$$$P $$$$$##WX!: . changed=false gid: 0 group: wheel mode: '0755' owner: root path: /etc/ansible/facts.d size: 512 state: directory uid: 0 ________________________________________________ < TASK [ansible-opnsense-facts : opnsense facts] > ------------------------------------------------ \ ,+*^^*+___+++_ \ ,*^^^^ ) \ _+* ^**+_ \ +^ _ _++*+_+++_, ) _+^^*+_ ( ,+*^ ^ \+_ ) { ) ( ,( ,_+--+--, ^) ^\ { (@) } f ,( ,+-^ __*_*_ ^^\_ ^\ ) {:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) / ( / ( ( ,___ ^*+_+* ) < < \ U _/ ) *--< ) ^\-----++__) ) ) ) ( ) _(^)^^)) ) )\^^^^^))^*+/ / / ( / (_))_^)) ) ) ))^^^^^))^^^)__/ +^^ ( ,/ (^))^)) ) ) ))^^^^^^^))^^) _) *+__+* (_))^) ) ) ))^^^^^^))^^^^^)____*^ \ \_)^)_)) ))^^^^^^^^^^))^^^^) (_ ^\__^^^^^^^^^^^^))^^^^^^^) ^\___ ^\__^^^^^^))^^^^^^^^)\\ ^^^^^\uuu/^^\uuu/^^^^\^\^\^\^\^\^\^\ ___) >____) >___ ^\_\_\_\_\_\_\) ^^^//\\_^^//\\_^ ^(\_\_\_\) ^^^ ^^ ^^^ ^ ok: [192.168.1.5] => (item=opnsense.fact) => changed=false ansible_loop_var: item checksum: d0d7f47a563bb8cc2ae4e38eb18e4a3cc06fec04 dest: /etc/ansible/facts.d/opnsense.fact gid: 0 group: wheel item: opnsense.fact mode: '0755' owner: root path: /etc/ansible/facts.d/opnsense.fact size: 365 state: file uid: 0 ____________________________________________________________ < TASK [ansible-opnsense-facts : reload ansible_local facts] > ------------------------------------------------------------ \ \ .::!!!!!!!:. .!!!!!:. .:!!!!!!!!!!!! ~~~~!!!!!!. .:!!!!!!!!!UWWW$$$ :$$NWX!!: .:!!!!!!XUWW$$$$$$$$$P $$$$$##WX!: . changed=false skip_reason: Conditional result was False ____________________________________________________________ < TASK [ansible-opnsense-plugpack : remove opnsense plugins] > ------------------------------------------------------------ \ ___-------___ \ _-~~ ~~-_ \ _-~ /~-_ /^\__/^\ /~ \ / \ /| O|| O| / \_______________/ \ | |___||__| / / \ \ | \ / / \ \ | (_______) /______/ \_________ \ | / / \ / \ \ \^\\ \ / \ / \ || \______________/ _-_ //\__// \ ||------_-~~-_ ------------- \ --/~ ~\ || __/ ~-----||====/~ |==================| |/~~~~~ (_(__/ ./ / \_\ \. (_(___/ \_____)_) skipping: [192.168.1.5] => changed=false skipped_reason: No items in the list _________________________________________________________ / TASK [ansible-opnsense-plugpack : give the process some \ \ time for settling ...] / --------------------------------------------------------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> Pausing for 5 seconds (ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) ok: [192.168.1.5] => changed=false delta: 5 echo: true rc: 0 start: '2024-07-28 16:58:12.233157' stderr: '' stdout: Paused for 5.0 seconds stop: '2024-07-28 16:58:17.233469' user_input: '' _____________________________________________________________ < TASK [ansible-opnsense-plugpack : install opnsense plugins] > ------------------------------------------------------------- \ \ .... . ........ . . . . ....... ......... .............................. Elephant inside ASCII snake ok: [192.168.1.5] => (item=os-acme-client) => changed=false ansible_loop_var: item cmd: - /usr/local/sbin/configctl - firmware - install - os-acme-client delta: null end: null item: os-acme-client msg: Did not run command since '/usr/local/opnsense/version/acme-client' exists rc: 0 start: null stderr: '' stderr_lines:or is that somewhat by design?