- name: run debug
debug:
msg: "{{ myvar }}"
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
{ | |
# TLS Options | |
email [email protected] | |
# auto_https disable_redirects | |
} | |
# see https://caddyserver.com/docs/caddyfile/directives/reverse_proxy | |
www.example.com { | |
route { | |
reverse_proxy { |
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
--- | |
image: python:3.8-slim-bullseye | |
variables: | |
ANSIBLE_FORCE_COLOR: "true" | |
VIRTUAL_ENV: .venv | |
PIP_REQUIRE_VIRTUALENV: "true" | |
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | |
cache: &global_cache |
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
--- | |
image: python:3.8-slim-buster | |
variables: | |
ANSIBLE_FORCE_COLOR: "true" | |
VIRTUAL_ENV: .venv | |
PIP_REQUIRE_VIRTUALENV: "true" | |
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | |
cache: &global_cache |
I hereby claim:
- I am resmo on github.
- I am resmo (https://keybase.io/resmo) on keybase.
- I have a public key ASA0qpsCX9loqPeKThBcoEgliCmiJ7vH97lR5VmStIrrcwo
To claim this, I am signing this object:
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
#!/usr/bin/python | |
import base64 | |
import os | |
SPEC_FILE = 'apb.yml' | |
DOCKERFILE = 'Dockerfile' | |
SPEC_LABEL = 'com.redhat.apb.spec' | |
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
#!/usr/bin/python | |
# coding: utf-8 -*- | |
# (c) 2018, Artem Goncharov <[email protected]> | |
# GNU General Public License v3.0+ | |
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
from __future__ import absolute_import, division, print_function | |
__metaclass__ = type |
PLAY [testhost] *****************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************
ok: [testhost]
TASK [cs_firewall : network setup] **********************************************************************************************************************************************
changed: [testhost] => {"account": "admin", "acl": null, "acl_type": "Account", "api_http_method": "post", "api_key": "lI3Gkmf-597mszaynqHP9XPrdXteERxZ5a3MtGeA2xZdgrN1zxhNz2RcUlck8h_lPPEsUf6Xw66pCBwhTZwUNw", "api_region": "cloudstack", "api_timeout": "60", "api_url": "http://localhost:8888/client/api", "broadcast_domain_type": "Vlan", "changed": true, "cidr": "10.1.1.0/24", "display_text": "ansible test", "dns1": "10.147.28.7", "domain": "ROOT", "g
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: localhost | |
tasks: | |
- name: exmaple block with when | |
when: 1 == 1 | |
block: | |
- name: task 1 | |
debug: | |
msg: run task | |
- name: task 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: register template and wait max 5 min until ready | |
cs_template: | |
... | |
register: template | |
until: template.is_ready | |
retries: 60 | |
delay: 5 |
NewerOlder