Hot answers tagged

3

Is there a reason why you are trying to monitor it from the outside? Can an autoscaling group with a load balancer be a solution. If yes, then provisioning these resources, having the ability to track & update configuration is something that will be possible using a tool like terraform(multi-cloud support) or cloudformation(cloud-specific). Ansible might ...


2

TL;DR; Terraform does allow you to get a lot of what you want done. Also, you might benefit from a more managed solution like AWS Fargate (which you also declare with Terraform). Whenever I use search keywords such as "orchestration" or "server clusters" or "iaas" I'll always end up in hundreds of results that are going to talk ...


1

Since the ini lookup plugin only reads files local to the controlling host, the remote file needs to be fetched locally before it can be read and set_fact has to be used to put its content into a variable, which results in the following: - block: - name: "Retrieve remote ini file" fetch: src: /path_to/ini_file dest: /tmp/ansible ...


1

You need to use set_fact when setting a variable (instead of register the outcome of a task): - name: Set myParam from ini set_fact: myParam: "{{ lookup('ini', 'section=mySection, file=/path_to/ini_file') }}" In the lookup: ini specifies what lookup plugin we are using section and file are arguments passed to the lookup, according to its ...


Only top voted, non community-wiki answers of a minimum length are eligible