Re: [ansible-project] Proxmox

2020-12-14 Thread Pim Janssen
Thanks for the reply. This could run a command inside a container. But i would like to run a complete playbook inside a container. Now i can set something like: ansible_connection=ssh ansible_python_interpreter="pct exec 212 -- python3" ansible_remote_tmp=/var/lib/lxc/212/rootfs/var/tmp/ (it r

Re: [ansible-project] Proxmox

2020-12-14 Thread Martin Etcheverry
Hi Pim , maybe this can work for you; you can run a command inside the container with something like that: - name: run command hosts: proxmox tasks: - name: Run command in container lxc_container: name: 133 state: started container_command: service ssh restart El dom, 13 dic 2020 a las 19:32, Pim

[ansible-project] Proxmox

2020-12-13 Thread Pim Janssen
Hi everyone, As i am new to Ansible i still have a lot to learn. I have been playing with Ansible and Proxmox for some time. I want to run Ansible within a Proxmox container without having to install SSH inside every container. It's possible to run commands inside a container using SSH on the

[ansible-project] Proxmox VM provisioning with ansible - how to run task on created vm?

2020-04-21 Thread Łukasz Boczkaja
Hi, I want to create a role that would do all of this tasks: 1. Create vm from template with preconfigured IP address 2. Modify vm parameters 3. Power up and wait for vm to be network reachable 4. Connect to newly created vm through template hardcoded IP and change its network settings N

Re: [ansible-project] Proxmox Module keeps saying "authorization on proxmox cluster failed with exception: Couldn't authenticate user"

2017-08-13 Thread 'Florian' via Ansible Project
My mistake not to RTFM… Thanks a lot, works now! :-) On Sunday, August 13, 2017 at 2:52:15 AM UTC+2, Kai Stian Olstad wrote: > > On 13. aug. 2017 01:10, 'Florian' via Ansible Project wrote: > > I hope this is the right place to ask, if not please let me know. > > It's the correct place. > > > >

Re: [ansible-project] Proxmox Module keeps saying "authorization on proxmox cluster failed with exception: Couldn't authenticate user"

2017-08-13 Thread 'Florian' via Ansible Project
My mistake not not RTFM… Thanks a lot, works now! :-) Greetings from Germany Florian On Sunday, August 13, 2017 at 2:52:15 AM UTC+2, Kai Stian Olstad wrote: > > On 13. aug. 2017 01:10, 'Florian' via Ansible Project wrote: > > I hope this is the right place to ask, if not please let me know. > >

Re: [ansible-project] Proxmox Module keeps saying "authorization on proxmox cluster failed with exception: Couldn't authenticate user"

2017-08-12 Thread Kai Stian Olstad
On 13. aug. 2017 01:10, 'Florian' via Ansible Project wrote: I hope this is the right place to ask, if not please let me know. It's the correct place. So I tried the following playbook task: - name: 'Create Proxmox container' proxmox: 'api_host=moon api_user=root api_password= vmid=200

[ansible-project] Proxmox Module keeps saying "authorization on proxmox cluster failed with exception: Couldn't authenticate user"

2017-08-12 Thread 'Florian' via Ansible Project
Hello there Ansible community, I hope this is the right place to ask, if not please let me know. My goal is to fully automate the provising of containers, which includes the creation of a Proxmox container. So I tried the following playbook task: - name: 'Create Proxmox container' proxmox:

[ansible-project] Proxmox network interface configuration: template error while templating string: Encountered unknown tag 'item'

2016-11-28 Thread Samuel Vandamme
Hi everyone I'm trying to setup multiple proxmox network interfaces for my containers with Ansible. Here is the code that I'm using. You can see in the netif property that I sometimes want to add a second interface to the container. - name: Create instances proxmox: vmid={{ item.id }}

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-10-01 Thread rreeves
I haven't gotten any further than this, I suspect other people are having this problem as well ? This doesn't seem stable for now, I guess I will wait. Thanks for the help though On Monday, September 28, 2015 at 3:20:46 PM UTC-7, rre...@phone.com wrote: > > *with some testing it seems that the c

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
*with some testing it seems that the core modules do work but still no luck with proxmox* */etc/ansible/ansible.cfg* inventory = /etc/ansible/hosts library = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core: /usr/local/lib/python2.7/dist-packages/ans

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Brian Coca
try: library = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core: /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Proj

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
thanks for the tip, it is the same location that I have assigned to library python -c 'import ansible.modules as m; print m.__file__' /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/__init__.pyc On Monday, September 28, 2015 at 2:29:14 PM UTC-7, Matt Martz wrote: >

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Matt Martz
The following command should give you the path to the modules: python -c 'import ansible.modules as m; print m.__file__' On Mon, Sep 28, 2015 at 4:15 PM, wrote: > *okay I have looked through ansible.cfg and changed this line* > library = > /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-p

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
*okay I have looked through ansible.cfg and changed this line* library = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules *sudo ansible --version* ansible 2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = /usr/local/lib/python2.7/dist-

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Brian Coca
I would have said you are missing a 'git submodule init --recursive' step .. but then you would not have any modules, if you are running python2.7 it should find these in the python path, otherwise just try setting in ansible.cfg the path directly for core and extras to the subdirs of /usr/local/l

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
well I installed this from source following this guide. https://valdhaus.co/writings/ansible-ubuntu-debian/ This is the only proxmox modules I could locate find / | grep proxmox /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox_template.py

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Brian Coca
that changes depending on how you isntalled -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
Thanks do you happen to know where is the default install location for modules ? On Saturday, September 26, 2015 at 1:37:54 PM UTC-7, Brian Coca wrote: > > it cannot find the proxmox plugin, double check that it is installed > on your system. > > On Fri, Sep 25, 2015 at 8:30 PM, > wrote: > >

Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-26 Thread Brian Coca
it cannot find the proxmox plugin, double check that it is installed on your system. On Fri, Sep 25, 2015 at 8:30 PM, wrote: > Hello, > > I want to test the new proxmox module for ansible 2.0. I followed the > instructions for building and installing ansible from source. When I run my > testing

[ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-25 Thread rreeves
Hello, I want to test the new proxmox module for ansible 2.0. I followed the instructions for building and installing ansible from source. When I run my testing playbook it produces an error, any ideas on how I can get this thing working ? ERROR! 'proxmox' is not a valid attribute for a Play