-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a single target field to simplified playbook
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
user: app | ||
ssh_key: ~/.ssh/id_rsa | ||
|
||
target: "127.0.0.1:2222" | ||
|
||
task: | ||
- name: wait | ||
script: sleep 5 | ||
|
||
- name: copy configuration | ||
copy: {"src": "/local/remark42.yml", "dst": "/srv/remark42.yml", "mkdir": true} | ||
|
||
- name: some local command | ||
options: {local: true} | ||
script: | | ||
ls -la /srv | ||
du -hcs /srv | ||
- name: git | ||
before: "echo before git" | ||
after: "echo after git" | ||
onerror: "echo onerror git" | ||
script: | | ||
git clone https://example.com/remark42.git /srv || true # clone if doesn't exists, but don't fail if exists | ||
cd /srv | ||
git pull | ||
- name: docker | ||
options: {no_auto: true} | ||
script: | | ||
docker pull umputun/remark42:latest | ||
docker stop remark42 || true | ||
docker rm remark42 || true | ||
docker run -d --name remark42 -p 8080:8080 umputun/remark42:latest | ||
env: | ||
FOO: bar | ||
BAR: qux |