version: 0.0.1
module: ansible
dependencies:
EXEIAC_ANSIBLE_INVENTORY:
from: it/app/instance:OUTPUT:$.address
#trigger_type: classic # DEFAULT VALUE
#needed_for: [ "lay", "plan", "remove" ] # DEFAULT DEFINE IN $HOME/.config/exeiac/exeiac.yml
#trigger_action: [ "lay" ] # DEFAULT VALUE
ansible_ssh_user:
from: it/app/instance:OUTPUT:$.credentials.username
trigger_type: weak
ansible_ssh_pass:
from: it/app/instance:OUTPUT:$.credentials.password
trigger_type: weak
instance_memory:
from: it/app/instance:OUTPUT:$.spec.memory
bastion_address:
from: it/bastion/instance:OUTPUT:$.public.address
trigger_type: weak
bastion_user:
from: it/bastion/configuration:OUTPUT:$.conf_user.
trigger_type: weak
bastion_password:
from: it/bastion/configuration:OUTPUT:$.conf_user.password
trigger_type: weak
instance_recreated:
from: it/app/instance:EVENT:$.changed_resources_list
trigger_type: contain("google_instance.app")
needed_for: []
input:
- type: env_vars
format: env
path: ""
datas:
- EXEIAC_ANSIBLE_INVENTORY
- type: file
format: env
path: .env
datas:
- ansible_ssh_user
- ansible_ssh_pass
- bastion_adress
- bastion_user
- bastion_address```