Skip to content

Commit

Permalink
Add lxc_container option and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmp1ce committed Jun 10, 2021
1 parent d421553 commit 8a8f6fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Then, modify your `hosts` file to use the `lxc_ssh` transport:
container ansible_host=server ansible_connection=lxc_ssh lxc_host=container
```

`lxc_container=container` also works for setting the LXC container name.

## Fork

Expand Down
5 changes: 5 additions & 0 deletions lxc_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,18 @@
The lxc host to connect to.
env:
- name: LXC_HOST
- name: LXC_CONTAINER
ini:
- key: lxc_host
section: lxc_ssh_connection
- key: lxc_container
section: lxc_ssh_connection
vars:
- name: lxc_host
- name: lxc_container
cli:
- name: lxc_host
- name: lxc_container
"""


Expand Down

0 comments on commit 8a8f6fb

Please sign in to comment.