diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6663746..313db4d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,7 @@ jobs: # check Python syntax - name: Python syntax check - run: python3 -m py_compile lxc_ssh.py + run: python3 -m py_compile plugins/lxc_ssh/lxc_ssh.py # prepare container with LXD installation @@ -272,7 +272,7 @@ jobs: run: ansible --version - name: Install plugin for tests - run: cp -af $GITHUB_WORKSPACE/lxc_ssh.py $GITHUB_WORKSPACE/tests/connection_plugins/lxc_ssh.py + run: cp -af $GITHUB_WORKSPACE/plugins/lxc_ssh/lxc_ssh.py $GITHUB_WORKSPACE/tests/connection_plugins/lxc_ssh.py - name: Create empty file for tests run: touch $GITHUB_WORKSPACE/tests/test_empty.txt diff --git a/galaxy.yml b/galaxy.yml new file mode 100644 index 0000000..23fa02d --- /dev/null +++ b/galaxy.yml @@ -0,0 +1,15 @@ +--- +authors: + - TODO +dependencies: + "ansible.netcommon": ">=2.0.1" +license_file: LICENSE +name: lxc_ssh +namespace: ansible +description: Ansible Network Collection for LXC containers and hosts +readme: README.md +repository: https://github.com/my_org/my_collection" +tags: [lxc, lxd, networking] +# NOTE(pabelanger): We create an empty version key to keep ansible-galaxy +# happy. We dynamically inject version info based on git information. +version: null diff --git a/meta/runtime.yml b/meta/runtime.yml new file mode 100644 index 0000000..2ee3c9f --- /dev/null +++ b/meta/runtime.yml @@ -0,0 +1,2 @@ +--- +requires_ansible: '>=2.9.10' diff --git a/ansible.mk b/plugins/lxc_ssh/ansible.mk similarity index 100% rename from ansible.mk rename to plugins/lxc_ssh/ansible.mk diff --git a/lxc_ssh.py b/plugins/lxc_ssh/lxc_ssh.py similarity index 100% rename from lxc_ssh.py rename to plugins/lxc_ssh/lxc_ssh.py diff --git a/pyproject.toml b/plugins/lxc_ssh/pyproject.toml similarity index 100% rename from pyproject.toml rename to plugins/lxc_ssh/pyproject.toml diff --git a/plugins/lxc_ssh/setup.cfg b/plugins/lxc_ssh/setup.cfg new file mode 100644 index 0000000..45a0146 --- /dev/null +++ b/plugins/lxc_ssh/setup.cfg @@ -0,0 +1,3 @@ +[pycodestyle] +statistics = True +max-line-length = 89