Comments (2)
Strangely it seems to run as the root user. Does this make any sense?
~/g/isolatednet> cat inventory.ini
[vpn]
pf1 ansible_ssh_host=138.80.128.139 ansible_ssh_user=root ansible_password=test
~/g/isolatednet> ansible-playbook provision_pfsense_users.yml -i inventory.ini
PLAY [all] ***************************************************************************************************************************
TASK [Add test user] *****************************************************************************************************************
[WARNING]: Platform freebsd on host pf1 is using the discovered Python interpreter at /usr/local/bin/python3.7, but future
installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
changed: [pf1]
PLAY RECAP ***************************************************************************************************************************
pf1 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
****
~/g/isolatednet> cat provision_pfsense_users.yml
---
# Playbook to create users
- hosts: all
connection: paramiko
gather_facts: false
tasks:
- name: Add test user
pfsensible.core.user:
name: s123456
password: "$2b$12$cDe6c9ROh/tw0hjzYn0nAu24Ich5NQvNjiGQsmTIjnjmGPvd6aUx2"
from ansible-pfsense.
Yes. For ansible to do much of anything it needs to be root. This can be done either by ssh'ing directly as root, or by ssh'ing as another user and then doing sudo (see "become" in ansible).
from ansible-pfsense.
Related Issues (20)
- Calling the plugin breaks special XML fields which use CDATA and contain ampersands HOT 4
- Managing DHCP and unbound - any plans? HOT 4
- Modules list error in main README.md ? HOT 1
- Feature Request: Provide interface update HOT 1
- Ansible - Error using privilege escalation HOT 1
- pfsense 2.5 Support? HOT 25
- using ca module in pfsense 2.5 HOT 1
- pfsensible.core not compatible with ansible.netcommon 2.0.0 HOT 1
- diff['before'] is equal to diff['after'] HOT 1
- Retire this repo HOT 5
- pfsense_vlan.py error on 2.5.1 HOT 5
- Problem with pfsense_authserver_ldap module - automatically change LDAP config ? HOT 2
- pfsense_ipsec_p2 module overwriting other p2 interfaces in 2.5.2 HOT 1
- pfsense_aggregate: module failuer when try to use non-default gateway with the rule
- cannot add vlan interface HOT 1
- can we have a backup option on this ansible modules HOT 1
- Rule add issue when alias list is empty -> TypeError: 'NoneType' object is not iterable HOT 1
- pfsense_interface module cannot remove a subinterface HOT 1
- ERROR! 'pfsense_rule' is not a valid attribute for a Play HOT 1
- Not a problem - just wondering if there is a way to print a list of users by group? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-pfsense.