mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
rename to a pct_remote
This commit is contained in:
parent
d75bf93639
commit
0eec0782a0
1 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ __metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = r"""
|
DOCUMENTATION = r"""
|
||||||
author: Nils Stein (@mietzen) <github.nstein@mailbox.org>
|
author: Nils Stein (@mietzen) <github.nstein@mailbox.org>
|
||||||
name: pct-remote
|
name: pct_remote
|
||||||
short_description: Run tasks in Proxmox LXC container instances using pct CLI via ssh
|
short_description: Run tasks in Proxmox LXC container instances using pct CLI via ssh
|
||||||
requirements:
|
requirements:
|
||||||
- paramiko
|
- paramiko
|
||||||
|
@ -304,11 +304,11 @@ all:
|
||||||
container-1:
|
container-1:
|
||||||
ansible_host: 10.0.0.10
|
ansible_host: 10.0.0.10
|
||||||
proxmox_vmid: 100
|
proxmox_vmid: 100
|
||||||
ansible_connection: community.general.pct-remote
|
ansible_connection: community.general.pct_remote
|
||||||
container-2:
|
container-2:
|
||||||
ansible_host: 10.0.0.10
|
ansible_host: 10.0.0.10
|
||||||
proxmox_vmid: 200
|
proxmox_vmid: 200
|
||||||
ansible_connection: community.general.pct-remote
|
ansible_connection: community.general.pct_remote
|
||||||
proxmox:
|
proxmox:
|
||||||
hosts:
|
hosts:
|
||||||
proxmox-1:
|
proxmox-1:
|
||||||
|
@ -332,7 +332,7 @@ filters:
|
||||||
want_proxmox_nodes_ansible_host: false
|
want_proxmox_nodes_ansible_host: false
|
||||||
compose:
|
compose:
|
||||||
ansible_host: "'10.0.0.10'"
|
ansible_host: "'10.0.0.10'"
|
||||||
ansible_connection: "'pct-remote'"
|
ansible_connection: "'pct_remote'"
|
||||||
|
|
||||||
# Playbook
|
# Playbook
|
||||||
---
|
---
|
||||||
|
@ -354,7 +354,7 @@ display = Display()
|
||||||
|
|
||||||
class Connection(SSH_Connection):
|
class Connection(SSH_Connection):
|
||||||
''' SSH based connections (paramiko) to Proxmox pct '''
|
''' SSH based connections (paramiko) to Proxmox pct '''
|
||||||
transport = 'community.general.pct-remote'
|
transport = 'community.general.pct_remote'
|
||||||
|
|
||||||
def exec_command(self, cmd: str, in_data: bytes | None = None, sudoable: bool = True) -> tuple[int, bytes, bytes]:
|
def exec_command(self, cmd: str, in_data: bytes | None = None, sudoable: bool = True) -> tuple[int, bytes, bytes]:
|
||||||
''' execute a command inside the proxmox container '''
|
''' execute a command inside the proxmox container '''
|
Loading…
Reference in a new issue