-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use ansible-opnsense-update & facts #20
Comments
Hello @tweak19 and thank you for your interest in our roles. We tried to offer some sample on how we use the roles in https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-playbook A improvement of the documentation is on the way as a PR in Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-playbook#1 - maybe you finde some interesting informations there In general you can write your playbook like this cloning the repos as roles: - name: opnsense
hosts: opnsense
vars:
ansible_become: no
roles:
# ...
- role: opnsense-facts # git clone https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-facts.git roles/opnsense-facts
tags:
- opnsense
- facts
- always
- role: opnsense # git clone https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense.git roles/opensense
tags:
- opnsense
- role: ansible-opnsense-update # git clone https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-update.git roles/
tags:
- opnsense
- update
# ... I will have a look at the option to install the roles via ansible-galaxy and update the docs accordingly (I'll keep this issue open for this) ... Hope this helps. |
Hello @tweak19 - copy & paste of text is sufficient - no need to upload images. Anyhow ... as stated in the README of the role, in my example above and in the message of the error you posted:
So you need to install and use the https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-facts role |
Hi, git clone https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-facts.git roles/opnsense-facts and the role is placed where are my othere roles stored. kind regards update: i think i found the issue, the facts need to be placed on the opnsense as seen in the main.yml... |
Just one last question about the usage. But with the "default" user from opnsense you didn't have root access. Or do you use the root user and change the login to /bin/sh ? Thanks in Advance. |
like all RLS opnsense ansible role, it requires root shell access (ssh) |
Hi,
I currently trying to use your roles, but I am not sure how is the correct way to add this to my existing ansible setup.
If i try to add it with ansible-galaxy collection install git+ xxx I get an error that no name is specificated.
Could you please be so fine and made an short explanation how to use?
Would be great to make automatic upgrades on my opnsense ;-)
Thx
Kind regards
The text was updated successfully, but these errors were encountered: