Advertisement
jrglynn2

Ansible Version / Playbook / group_vars

Apr 17th, 2024 (edited)
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.23 KB | None | 0 0
  1. -- Ansible Version
  2. Ansible Full Version: 9.4.0
  3. Ansible-Core Version: ansible [core 2.16.5]
  4.   config file = /opt/ansible/ansible.cfg
  5.   configured module search path = ['/home/ec2-user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  6.   ansible python module location = /opt/ansible/_runtime/lib64/python3.11/site-packages/ansible
  7.   ansible collection location = /opt/ansible/ansible_collections
  8.   executable location = /opt/ansible/_runtime/bin/ansible
  9.   python version = 3.11.6 (main, Nov 22 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible/_runtime/bin/python3)
  10.   jinja version = 3.1.3
  11.   libyaml = True
  12.  
  13. -- AWS CLI Version
  14. aws-cli/2.15.35 Python/3.11.8 Linux/6.1.82-99.168.amzn2023.x86_64 exe/x86_64.amzn.2023 prompt/off
  15.  
  16. -- Ansible Playbook task
  17. - name: Create tomcat group
  18.   become: true
  19.   ansible.builtin.group:
  20.     name: tomcat
  21.     gid: 2001
  22.     state: present
  23.  
  24.  
  25. -- Ansible group_vars settings
  26. ---
  27. ansible_user: ansible
  28. ansible_ssh_private_key_file: /opt/ansible/keys/ansible.pem
  29.  
  30. ansible_ssh_common_args: '-o ProxyCommand="aws ec2-instance-connect ssh --region us-east-1 --instance-id {{ instance_id }} --os-user {{ ansible_user }} --private-key-file {{ ansible_ssh_private_key_file }}"'
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement