Move necessary files to collection

This commit is contained in:
Vincent Wilke 2020-08-01 18:45:52 +02:00
parent b43403f4f0
commit 6e7357a6b0
No known key found for this signature in database
GPG key ID: ABCC75B6D36F2E62
13 changed files with 46 additions and 40 deletions

View file

@ -1 +0,0 @@
* @jcgruenhage

15
galaxy.yml Normal file
View 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
View 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).

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,7 +0,0 @@
HS_URL=
USER_ID=
PASSWORD=
TOKEN=
ROOM_ID=
ROOM_ALIAS=

View file

@ -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