Results for ansible
I have a big json var, the structure is like this: { "ad_groups": [ { "display_name": "GROUPNAME", "group_members"...
In tutorials I find sometimes: - name: Copy something ansible.builtin.copy: src: "src/foo" dest: "dest/foo" but sometimes: - name: Copy some...
I'm trying to concatentate an Ansible list into a space seperate string without surrounding quotes within a shell or command module call. The command ...
I have the following playbook: - hosts: localhost vars_files: - vars/common_vars.yml vars: deploy_folder: "win" in my vars/common_vars.yml...
I have this playbook. It will eventually be used to execute SQL on a MySQL database. --- # This playbook sets a bunch facts/variables # including mys...
I want to create a vault (1password, not Ansible vaults) for each host in the inventory. - name: Get the vault list ansible.builtin.shell: cmd: ...
I have a playbook to execute a few tasks on a remote node. The requirement is that I have to execute some of those tasks as one user (say foo-user) an...
Very close to Create an int var with Ansible's ternary operator and that answer https://stackoverflow.com/a/69109779/446302 In an Ansible project, I'm...
I want to apply the specific tag or tags for the ec2 instance to the attached EBS volumes. Form the amazon.aws.ec2_instance_info: I get the all inform...
I am having 1 node where the multiple (deb) packages are deployed. I want to check the version if correct one is deployed or not, if miss match i have...
I have an Ansible playbook that will be pulling a list of VMs from a Nutanix Prism Central, capture the vm_name and the UUID, parse the short name of ...
I am working on an Ansible script that parses a return from the nslookup command. The regex_search pattern returns a trailing '. I have been trying t...
The error appears to be in '/home/jasmi/sprint5/us2/zuul-config/scenario/test/testservice.yaml':fatal: [localhost]: FAILED! => {"changed": false, "ms...
So let's say I have a role in Ansible that takes one input parameter and, at the end of its execution, uses the set_fact module to write the output to...
I have an Ansible playbook (as shown below) which contains 2 tasks: create folders, and copy a file into one of the created folder. - hosts: test2 b...
I have this playbook to create multiple users with loop - name: creation des users become: yes become_method: sudo become_user: root user: ...
I have a task within my playbook where I want to add a new line and then place it after a certain line but after I run it, it adds to the bottom of th...
I have an Ansible task that performs a curl on the databricks API. Here's what it looks like : --- - name: Databricks dbfs deploy shell: "curl -H 'A...
For an Ansible role that needs to create multiple folders I want to work with a simple representation of the list of paths to create: an human readabl...
I'm trying to write a fairly simply unittest for an ansible task. Here is the basic task: --- - name: Test task host: localhost task: - name:...
I'm new to using Ansible and was hoping to be able to write basic python scripts then run them on remote machines. I have tried the various execution...
I'm hoping to get some guidance on the following code which involves a nested variable in Ansible. Here's the playbook: --- - name: Testing hosts: l...
I am trying to upload multiple .xml files to a server and my Ansible playbook indicates the path isn't a directory, but the path and files are there. ...
I have a dictionary that looks something like this (but much bigger): my_dict: "id1": "name1" "id2": "name2" "id3": "name1" "id4": "name2" "...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?