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
--- | |
apiVersion: helm.fluxcd.io/v1 | |
kind: HelmRelease | |
metadata: | |
name: demo | |
namespace: demo | |
annotations: | |
fluxcd.io/tag.comment: semver:~0.1 | |
fluxcd.io/tag.post: semver:~0.1 | |
fluxcd.io/tag.ui: semver:~0.2 |
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
- name: Start service and enabled at boot | |
systemd: | |
state: started | |
name: ui | |
enabled: true | |
daemon_reload: true # это нужно, чтобы демон systemd прочел все изменения в service-файлах |
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
POST_SERVICE_HOST={{ POST_SERVICE_HOST }} | |
COMMENT_SERVICE_HOST={{ COMMENT_SERVICE_HOST }} | |
POST_SERVICE_PORT={{ POST_SERVICE_PORT | default('5000') }} | |
COMMENT_SERVICE_PORT={{ COMMENT_SERVICE_PORT | default('4567') }} |
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
- name: Add reddit_config | |
template: | |
src: ui_config.j2 | |
dest: /home/ubuntu/reddit/ui/ui_config |
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
... | |
- name: print puma version | |
command: puma -V | |
register: puma_v | |
- name: print output | |
debug: | |
var: puma_v | |
- name: gem install puma -v 3.12.0 |
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
--- | |
galaxy_info: | |
author: MyName | |
description: MyDescription | |
company: MyCompany (optional) | |
# If the issue tracker for your role is not on github, uncomment the | |
# next line and provide a value | |
# issue_tracker_url: http://example.com/issue/tracker |
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
- hosts: all | |
gather_facts: False | |
vars: | |
file_name: /home/ubuntu/test.txt | |
template: "Secret key is ASDF" | |
tasks: | |
- name: Create a file | |
copy: |
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
- name: apt install python | |
apt: | |
name: ['python3', 'python3-dev'] | |
state: present | |
update_cache: yes |
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
tasks: | |
... | |
- name: Add unit file for <your service> | |
copy: | |
# Подставляем свой сервис | |
src: files/<your service> | |
dest: /etc/systemd/system/<service name> | |
notify: reload <your service> # Не забудьте написать хендлер для этого! | |
... |
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
- name: Clone repo | |
git: | |
# Адрес репозитория | |
repo: <repo url> | |
# не забудьте подставить своего user | |
dest: /home/<your user>/reddit | |
version: microservices |
NewerOlder