mirror of
https://gitlab.com/famedly/ansible/modules/matrix.git
synced 2024-04-28 17:46:42 +00:00
Move necessary files to collection
This commit is contained in:
parent
b43403f4f0
commit
6e7357a6b0
|
@ -1 +0,0 @@
|
|||
* @jcgruenhage
|
15
galaxy.yml
Normal file
15
galaxy.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
namespace: famedly
|
||||
|
||||
name: matrix
|
||||
|
||||
version: 0.1.0
|
||||
|
||||
readme: README.md
|
||||
|
||||
authors:
|
||||
- jcgruenhage <jan.christian@gruenhage.xyz>
|
||||
|
||||
description: matrix modules
|
||||
|
||||
license:
|
||||
- AGPL-3.0
|
31
plugins/README.md
Normal file
31
plugins/README.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Collections Plugins Directory
|
||||
|
||||
This directory can be used to ship various plugins inside an Ansible collection. Each plugin is placed in a folder that
|
||||
is named after the type of plugin it is in. It can also include the `module_utils` and `modules` directory that
|
||||
would contain module utils and modules respectively.
|
||||
|
||||
Here is an example directory of the majority of plugins currently supported by Ansible:
|
||||
|
||||
```
|
||||
└── plugins
|
||||
├── action
|
||||
├── become
|
||||
├── cache
|
||||
├── callback
|
||||
├── cliconf
|
||||
├── connection
|
||||
├── filter
|
||||
├── httpapi
|
||||
├── inventory
|
||||
├── lookup
|
||||
├── module_utils
|
||||
├── modules
|
||||
├── netconf
|
||||
├── shell
|
||||
├── strategy
|
||||
├── terminal
|
||||
├── test
|
||||
└── vars
|
||||
```
|
||||
|
||||
A full list of plugin types can be found at [Working With Plugins](https://docs.ansible.com/ansible/2.9/plugins/plugins.html).
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
source test-settings.sh
|
||||
|
||||
login_resp=` echo "{\"ANSIBLE_MODULE_ARGS\": {\"hs_url\": \"${HS_URL}\",\"user_id\": \"${USER_ID}\",\"password\": \"${PASSWORD}\"}}" | python matrix_login.py`
|
||||
|
||||
echo $login_resp
|
||||
|
||||
local_token=`echo $login_resp | jq --raw-output '.token'`
|
||||
|
||||
echo "{\"ANSIBLE_MODULE_ARGS\": {\"hs_url\": \"${HS_URL}\",\"token\": \"${local_token}\"}}" | python matrix_logout.py
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
source test-settings.sh
|
||||
|
||||
notification_resp=` echo "{\"ANSIBLE_MODULE_ARGS\": {\"hs_url\": \"${HS_URL}\", \"token\": \"${TOKEN}\", \"room_id\": \"${ROOM_ID}\", \"msg_plain\": \"**Hello, World!**\", \"msg_html\": \"<b>Hello, World!</b>\"}}" | python matrix_notification.py`
|
||||
|
||||
echo $notification_resp
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
source test-settings.sh
|
||||
|
||||
room_resp=` echo "{\"ANSIBLE_MODULE_ARGS\": {\"hs_url\": \"${HS_URL}\",\"token\": \"${TOKEN}\",\"alias\": \"${ROOM_ALIAS}\"}}" | python matrix_room.py`
|
||||
|
||||
echo $room_resp
|
|
@ -1,7 +0,0 @@
|
|||
HS_URL=
|
||||
USER_ID=
|
||||
PASSWORD=
|
||||
TOKEN=
|
||||
|
||||
ROOM_ID=
|
||||
ROOM_ALIAS=
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
source test-settings.sh
|
||||
|
||||
state_resp=` echo "{\"ANSIBLE_MODULE_ARGS\": {\"hs_url\": \"${HS_URL}\", \"token\": \"${TOKEN}\", \"room_id\": \"${ROOM_ID}\", \"state_key\": \"\", \"event_type\": \"m.room.name\", \"content\": { \"name\": \"test room name\"}}}" | python matrix_state.py`
|
||||
|
||||
echo $state_resp
|
Loading…
Reference in a new issue