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
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
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
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
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.
>
>
> >
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.
>
>
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
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:
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 }}
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
*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
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
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:
>
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
*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-
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
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
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
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:
> >
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
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
21 matches
Mail list logo