1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-23 00:49:42 +00:00
Commit graph

120 commits

Author SHA1 Message Date
Brooks Swinnerton
671974ed60
Add ability to turn off colored output (#32)
* Add Action input to control colored Ansible output

* Update main.js

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2021-08-01 17:03:21 +02:00
Brooks Swinnerton
00e2fc8809
Capture output of stdout and stderr to Actions (#30)
* Capture output of stdout and stderr to Actions

* Remove type descriptors

Whoops! This isn't typescript

* Remove semicolons

* Rename cmd to args

* Separate command from arguments to exec

* Revert "Rename cmd to args"

This reverts commit 98591e5513.

* Append stdout and stderr to string, then log

* Consolidate stdout and stderr into single output

* Move base command back to cmd variable

* Embed execOptions as parameter to exec
2021-07-31 18:13:50 +02:00
Dawid Dziurla
fbcc2c2bae
main: fix 2021-07-26 20:45:05 +02:00
Dawid Dziurla
490a9e7da1
main: put ssh option in quotes 2021-07-26 20:35:00 +02:00
Dawid Dziurla
e959e707d3
main: simplify known hosts logic 2021-07-26 20:24:44 +02:00
Dawid Dziurla
90a22da2b0
README: update 2021-07-26 18:46:29 +02:00
Dawid Dziurla
aefa1cb082
README: update 2021-07-26 18:44:13 +02:00
Dawid Dziurla
ad014132a3
Merge pull request #28 from dawidd6/sudo
main: pass PATH to sudo
2021-07-26 18:37:52 +02:00
Dawid Dziurla
df6f49da3e
main: preserve env - sudo 2021-07-26 18:32:34 +02:00
Dawid Dziurla
95ac226ed8
workflows: test sudo 2021-07-26 18:29:42 +02:00
Dawid Dziurla
163a4d1959
main: pass PATH to sudo 2021-07-26 18:25:55 +02:00
obbiondo
03f941b221
Add sudo option for root access (#16)
Co-authored-by: ANDREA BIONDO s291512 <s291512@studenti.polito.it>
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2021-07-19 17:49:48 +02:00
Dawid Dziurla
f0b38f33e9
Merge pull request #21 from dawidd6/dependabot-add-v2-config-file
Upgrade to GitHub-native Dependabot
2021-04-29 07:40:46 +02:00
dependabot-preview[bot]
75ae627236
Upgrade to GitHub-native Dependabot 2021-04-28 22:30:47 +00:00
Dawid Dziurla
69990b93b4
Merge pull request #20 from dawidd6/dependabot-npm_and_yarn-actions-core-1.2.7
build(deps): bump @actions/core from 1.2.6 to 1.2.7
2021-04-14 09:14:00 +02:00
dependabot-preview[bot]
3c219bf69c
build(deps): bump @actions/core from 1.2.6 to 1.2.7
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.2.7.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-14 04:54:38 +00:00
Dawid Dziurla
212713722b
Merge pull request #19 from Apreche/host_key_checking
Add support for SSH Host Key Checking
2021-04-04 23:29:36 +02:00
Scott Rubin
d45b74f42d Add support for SSH Host Key Checking
By default it seems that SSH host key checking has been disabled. This
patch makes it optional. If a variable named known_hosts is passed in,
the key checking will be enabled. The variable should contain the
complete contents of the known_hosts file, which must contain the public
key(s) of the host(s) in the inventory.
2021-04-04 16:51:46 -04:00
Dawid Dziurla
aad578fcdd
Merge pull request #18 from dawidd6/dependabot-npm_and_yarn-yaml-1.10.2
build(deps): bump yaml from 1.10.0 to 1.10.2
2021-03-15 10:56:05 +01:00
dependabot-preview[bot]
16c5208cd3
build(deps): bump yaml from 1.10.0 to 1.10.2
Bumps [yaml](https://github.com/eemeli/yaml) from 1.10.0 to 1.10.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v1.10.0...v1.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-15 04:43:20 +00:00
Dawid Dziurla
1b347b1afe
put test stuff intooo... test/ dir 2021-02-11 17:28:46 +01:00
Dawid Dziurla
0eefa394aa
workflows: always run in test/ dir 2021-02-11 17:28:23 +01:00
Dawid Dziurla
0d7274dc6a
workflows: refactor 2021-02-11 17:24:38 +01:00
Dawid Dziurla
9c19e7ec30
test/playbook: install cowsay via apt 2021-02-11 17:08:44 +01:00
Dawid Dziurla
3c534b3ba0
Merge pull request #15 from dawidd6/requirements
Support installing requirements
2020-12-10 22:34:57 +01:00
Dawid Dziurla
9a7cbd2b6b
main: parse requirements yaml and run appropriate commands 2020-12-09 11:57:43 +01:00
Dawid Dziurla
19d1b2c628
workflows: test installing bundled requirements 2020-12-09 11:57:12 +01:00
Dawid Dziurla
c27fb2d7b1
add requirements-bundle 2020-12-09 11:56:52 +01:00
Dawid Dziurla
7b2f0761a9
package: add yaml 2020-12-09 11:56:40 +01:00
Dawid Dziurla
d270136941
main: install collections and roles from galaxy 2020-12-09 11:36:40 +01:00
Dawid Dziurla
e4d3ccbe7b
workflows: test installing requirements 2020-12-06 17:06:29 +01:00
Dawid Dziurla
a328034622
add example requirements file 2020-12-06 17:06:16 +01:00
Dawid Dziurla
1b9385ee45
main: support installing requirements 2020-12-06 17:06:02 +01:00
Dawid Dziurla
563b73df2f
action: add requirements 2020-12-06 17:05:44 +01:00
Dawid Dziurla
d28d9989a8
Merge pull request #14 from dawidd6/check-file-exists
Check if file exists before unlinking
2020-12-06 16:56:26 +01:00
Dawid Dziurla
81f2a15778
post: check if file exists before unlinking 2020-12-06 16:54:45 +01:00
Dawid Dziurla
145a900758
workflows: test running the action twice 2020-12-06 16:54:32 +01:00
Dawid Dziurla
a90a5a21fa
node_modules: update 2020-11-12 16:41:30 +01:00
Dawid Dziurla
a216fccde8
Merge pull request #10 from dawidd6/dependabot-npm_and_yarn-actions-core-1.2.6
build(deps): bump @actions/core from 1.2.5 to 1.2.6
2020-09-24 10:12:25 +02:00
dependabot-preview[bot]
76f8e15bac
build(deps): bump @actions/core from 1.2.5 to 1.2.6
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-24 04:59:58 +00:00
Dawid Dziurla
9805b8fa8b
workflows: don't pass sensitive info 2020-09-04 10:16:36 +02:00
Dawid Dziurla
921a00333b
workflows: modify triggers 2020-08-30 12:06:25 +02:00
Dawid Dziurla
1e8a3ef594
node_modules: update 2020-08-30 12:05:39 +02:00
Dawid Dziurla
e3e388ffee
Merge pull request #7 from dawidd6/dawidd6-patch-1
Fix directory handling in post run
2020-05-14 20:27:25 +02:00
Dawid Dziurla
12b09931f9
workflows: test directory 2020-05-14 20:20:43 +02:00
Dawid Dziurla
6f709ceecd
add directory test playbook 2020-05-14 20:19:22 +02:00
Dawid Dziurla
89ee60634c
post: change directory if saved 2020-05-14 20:16:43 +02:00
Dawid Dziurla
83c93acd55
main: save directory to state 2020-05-14 20:13:55 +02:00
Dawid Dziurla
c65cf629fb
action: add post 2020-05-07 11:42:11 +02:00
Dawid Dziurla
6249522d7c
add post script 2020-05-07 11:42:11 +02:00