generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
SUMMARY
I am trying to copy a file to a LXC container, the following task hangs with the following command:
Task:
- name: Push config file
ansible.builtin.copy:
src: "config.yml"
dest: "/etc/app/config.yml"
mode: '0644'Command:
<proxmox> EXEC sudo /usr/sbin/pct exec 100 -- /bin/sh -c 'cat > ~$USER/.ansible/tmp/ansible-tmp-1771349495.3212724-2287226-80401745570789/.source.yml'
ISSUE TYPE
- Bug Report
COMPONENT NAME
community.proxmox.proxmox_pct_remote
ANSIBLE VERSION
ansible [core 2.20.0]
config file = None
configured module search path = ['/home/ax/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /nix/store/27a8haczygaiasifk8kj94jkhwg5dyih-python3.13-ansible-core-2.20.0/lib/python3.13/site-packages/ansible
ansible collection location = /home/ax/.ansible/collections:/usr/share/ansible/collections
executable location = /nix/store/27a8haczygaiasifk8kj94jkhwg5dyih-python3.13-ansible-core-2.20.0/bin/ansible
python version = 3.13.11 (main, Dec 5 2025, 16:06:33) [GCC 15.2.0] (/nix/store/slhpx9glq7vl99bwi93bgrhn3syv98s1-python3-3.13.11/bin/python3.13)
jinja version = 3.1.6
pyyaml version = 6.0.3 (with libyaml v0.2.5)
COLLECTION VERSION
# /nix/store/sbaqv1sfbg44qnhxw2c115ai8a7zk8qs-python3.13-ansible-13.1.0/lib/python3.13/site-packages/ansible_collections
Collection Version
----------------- -------
community.proxmox 1.4.0
CONFIGURATION
CONFIG_FILE() = /home/ax/docs/80-system/82-servers/82.10-server/ansible.cfg
DEFAULT_BECOME_ASK_PASS(/home/ax/docs/80-system/82-servers/82.10-server/ansible.cfg) = True
DEFAULT_HOST_LIST(/home/ax/docs/80-system/82-servers/82.10-server/ansible.cfg) = ['/home/ax/docs/80-system/82-servers/82.10-server/inventory/prod.yml', '/home/ax/docs/80-system/82-servers/82.10-server/inventory/services.yml']
DEFAULT_ROLES_PATH(/home/ax/docs/80-system/82-servers/82.10-server/ansible.cfg) = ['/home/ax/docs/80-system/82-servers/82.10-server/roles']
EDITOR(env: EDITOR) = nvim
PAGER(env: PAGER) = less
GALAXY_SERVERS:
OS / ENVIRONMENT
NixOS
STEPS TO REPRODUCE
lxc:
hosts:
app:
ansible_host: proxmox
ansible_user: ax
ansible_connection: community.proxmox.proxmox_pct_remote
proxmox_vmid: 100
- name: Push config file
ansible.builtin.copy:
src: "config.yml"
dest: "/etc/app/config.yml"
mode: '0644'EXPECTED RESULTS
Ansible would copy the file.
ACTUAL RESULTS
Ansible hangs when running
<alammush> EXEC sudo /usr/sbin/pct exec 100 -- /bin/sh -c 'cat > ~ax/.ansible/tmp/ansible-tmp-1771349495.3212724-2287226-80401745570789/.source.yml'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels