diff --git a/Playbooks/01-A-OPENLDAP.yml b/Playbooks/01-A-OPENLDAP.yml index e69de29..f39a4d2 100644 --- a/Playbooks/01-A-OPENLDAP.yml +++ b/Playbooks/01-A-OPENLDAP.yml @@ -0,0 +1,34 @@ +# ansible-playbook Playbooks/01-A-OPENLDAP.yml -i Inventories/QA -v -t 'deploy' --ask-become-pass +# ansible-playbook Playbooks/01-A-OPENLDAP.yml -i Inventories/QA -v -t 'deploy' --become-password-file + +- hosts: ubuntu_lxd + gather_facts: false + tags: deploy + vars: + DIR: "~/OpenLDAP/" + tasks: + - name: Create a directory if it does not exist + ansible.builtin.file: + path: "{{DIR}}" + state: directory + mode: '0755' + + - ansible.builtin.copy: + src: files/OpenLDAP.tf + dest: "{{DIR}}" + + # Instalar terraform desde ansible con apt + # usar el socket sin sudo + # storage pool zfs + + #- become: true + # ansible.builtin.shell: | + # apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main" + # apt install terraform + + - become: true + community.general.terraform: + project_path: '/home/renzo/OpenLDAP' + force_init: true + state: present + \ No newline at end of file diff --git a/Playbooks/01-UBUNTU-LXD.yml b/Playbooks/01-UBUNTU-LXD.yml index 132fd00..52781a2 100644 --- a/Playbooks/01-UBUNTU-LXD.yml +++ b/Playbooks/01-UBUNTU-LXD.yml @@ -1,22 +1,33 @@ -# ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA --ask-become-pass +# ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA -v -t 'deploy' --become-password-file .sudo_pass - hosts: ubuntu_lxd - vars: - sudoers: - - lxd - gather_facts: true + gather_facts: false + tags: + - deploy + become: true tasks: - #- ansible.builtin.include_role: name=new_sudoers_user - - name: Install packages - ansible.builtin.package: - name: "{{item}}" - state: present - with_items: - - "ansible" - - "zfsutils-linux" + - name: Update, Upgrade & Install dependencies + become: true + block: + - apt: update_cache=yes upgrade=full + - ansible.builtin.package: name="{{item}}" state=present + with_items: + - ansible + - zfsutils-linux + - python3-pip + - lxc + - build-essential + - autoconf + - libtool + - pkg-config + - idle-python2.7 + - libgle3 + - terraform + - ansible.builtin.include_role: name=init_lxd + + - pip: name=pylxd + - script: Playbooks/files/OpenLDAP.py - - ansible.builtin.include_role: - name: init_lxd #vars: # - lxd_init_template_config_path="/path/to/my/custom/template" @@ -24,14 +35,13 @@ - hosts: ubuntu_lxd tags: - rollback - tasks: + become: true + tasks: - shell: "snap remove --purge lxd" - become: true - - name: Install packages - ansible.builtin.package: - name: "{{item}}" - state: absent + - pip: name=lxc-python2 state=absent + - ansible.builtin.package: name="{{item}}" state=absent with_items: - "ansible" - "zfsutils-linux" - + - "python3-pip" + - "lxc" \ No newline at end of file diff --git a/Playbooks/files/OpenLDAP.py b/Playbooks/files/OpenLDAP.py new file mode 100644 index 0000000..4d238ed --- /dev/null +++ b/Playbooks/files/OpenLDAP.py @@ -0,0 +1,25 @@ +from pylxd import Client + +# Project +lxd_proj = "MPS-LDAP" +lxd_proj_desc = "Proyecto para OpenLDAP & su cliente PHP LDAP Admin" +lxd_proj_config = {'limits.instances': '2'} + +f = False +for project in Client().projects.all(): + if project.name == lxd_proj: + f = True + break +if not f: + project = Client().projects.create( + lxd_proj, description=lxd_proj_desc, config=lxd_proj_config) + +LXD = Client(project=lxd_client) + + +# Create Network if not exists + +# Create Storage Pool if not exists + +# Create instance if not exists +ldap_instance = "OpenLDAP" \ No newline at end of file diff --git a/Playbooks/files/OpenLDAP.tf b/Playbooks/files/OpenLDAP.tf new file mode 100644 index 0000000..95b0b06 --- /dev/null +++ b/Playbooks/files/OpenLDAP.tf @@ -0,0 +1,30 @@ +terraform { + required_providers { + lxd = { + source = "terraform-lxd/lxd" + } + } +} + +provider "lxd" { + generate_client_certificates = true + accept_remote_certificate = true +} + +resource "lxd_cached_image" "focal" { + source_remote = "ubuntu" + source_image = "focal/amd64" +} + +resource "lxd_container" "test1" { + name = "test1" + image = lxd_cached_image.focal.fingerprint + ephemeral = false + config = { + "boot.autostart" = true + } + limits = { + cpu = 2 + } +} + diff --git a/Playbooks/roles/init_lxd/README.md b/Playbooks/roles/init_lxd/README.md deleted file mode 100644 index 225dd44..0000000 --- a/Playbooks/roles/init_lxd/README.md +++ /dev/null @@ -1,38 +0,0 @@ -Role Name -========= - -A brief description of the role goes here. - -Requirements ------------- - -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. - -Role Variables --------------- - -A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. - -Dependencies ------------- - -A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. - -Example Playbook ----------------- - -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: - - - hosts: servers - roles: - - { role: username.rolename, x: 42 } - -License -------- - -BSD - -Author Information ------------------- - -An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/Playbooks/roles/init_lxd/defaults/main.yml b/Playbooks/roles/init_lxd/defaults/main.yml index e790483..1267aec 100644 --- a/Playbooks/roles/init_lxd/defaults/main.yml +++ b/Playbooks/roles/init_lxd/defaults/main.yml @@ -11,4 +11,4 @@ storage_pool_name: "default" storage_pool_driver: "zfs" storage_pool_size: "20GB" # - Network -network_default_name: "lxdbr0" \ No newline at end of file +network_default_name: "bridge1" \ No newline at end of file diff --git a/Playbooks/roles/init_lxd/handlers/main.yml b/Playbooks/roles/init_lxd/handlers/main.yml deleted file mode 100644 index 65e3fee..0000000 --- a/Playbooks/roles/init_lxd/handlers/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# handlers file for roles/init_lxd diff --git a/Playbooks/roles/init_lxd/meta/main.yml b/Playbooks/roles/init_lxd/meta/main.yml deleted file mode 100644 index c572acc..0000000 --- a/Playbooks/roles/init_lxd/meta/main.yml +++ /dev/null @@ -1,52 +0,0 @@ -galaxy_info: - author: your name - description: your role description - company: your company (optional) - - # If the issue tracker for your role is not on github, uncomment the - # next line and provide a value - # issue_tracker_url: http://example.com/issue/tracker - - # Choose a valid license ID from https://spdx.org - some suggested licenses: - # - BSD-3-Clause (default) - # - MIT - # - GPL-2.0-or-later - # - GPL-3.0-only - # - Apache-2.0 - # - CC-BY-4.0 - license: license (GPL-2.0-or-later, MIT, etc) - - min_ansible_version: 2.1 - - # If this a Container Enabled role, provide the minimum Ansible Container version. - # min_ansible_container_version: - - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - # platforms: - # - name: Fedora - # versions: - # - all - # - 25 - # - name: SomePlatform - # versions: - # - all - # - 1.0 - # - 7 - # - 99.99 - - galaxy_tags: [] - # List tags for your role here, one per line. A tag is a keyword that describes - # and categorizes the role. Users find roles by searching for tags. Be sure to - # remove the '[]' above, if you add tags to this list. - # - # NOTE: A tag is limited to a single word comprised of alphanumeric characters. - # Maximum 20 tags per role. - -dependencies: [] - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/Playbooks/roles/init_lxd/tasks/main.yml b/Playbooks/roles/init_lxd/tasks/main.yml index b8d443b..cbe2ccd 100644 --- a/Playbooks/roles/init_lxd/tasks/main.yml +++ b/Playbooks/roles/init_lxd/tasks/main.yml @@ -7,14 +7,14 @@ classic: yes - ansible.builtin.debug: - var: hostvars[inventory_hostname]['ansible_default_ipv6']['address'] + var: hostvars[inventory_hostname]['ansible_default_ipv4']['address'] verbosity: 1 -- delegate_to: localhost - delegate_facts: true - ansible.builtin.copy: - content: "{{hostvars[inventory_hostname]}}" - dest: ./test.json +#- delegate_to: localhost +# delegate_facts: true +# ansible.builtin.copy: +# content: "{{hostvars[inventory_hostname]}}" +# dest: ./test.json - delegate_to: localhost delegate_facts: true diff --git a/Playbooks/roles/init_lxd/templates/default_config.yml.j2 b/Playbooks/roles/init_lxd/templates/default_config.yml.j2 index 902e3f0..f059626 100644 --- a/Playbooks/roles/init_lxd/templates/default_config.yml.j2 +++ b/Playbooks/roles/init_lxd/templates/default_config.yml.j2 @@ -7,16 +7,16 @@ networks: - name: {{network_default_name}} project: {{lxd_project_name}} type: bridge - config: + #config: # IPv4 - ipv4.nat: "true" - ipv4.address: {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }} + # ipv4.nat: "true" + # ipv4.address: {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }} # IPv6 - ipv6.nat: "true" + # ipv6.nat: "true" # -- storage_pools: -- name: {{storage_pool}} +- name: {{storage_pool_name}} driver: {{storage_pool_driver}} config: size: {{storage_pool_size}} @@ -32,14 +32,14 @@ profiles: type: nic root: path: / - pool: {{storage_pool}} + pool: {{storage_pool_name}} type: disk # -- projects: -- config: +- name: {{lxd_project_name}} + config: features.images: "true" features.networks: "true" features.profiles: "true" - features.storage.volumes: "true" - name: {{lxd_project_name}} \ No newline at end of file + features.storage.volumes: "true" \ No newline at end of file diff --git a/Playbooks/roles/init_lxd/tests/inventory b/Playbooks/roles/init_lxd/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/Playbooks/roles/init_lxd/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/Playbooks/roles/init_lxd/tests/test.yml b/Playbooks/roles/init_lxd/tests/test.yml deleted file mode 100644 index 3aa504d..0000000 --- a/Playbooks/roles/init_lxd/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - roles/init_lxd diff --git a/Playbooks/roles/init_lxd/vars/main.yml b/Playbooks/roles/init_lxd/vars/main.yml deleted file mode 100644 index e04e907..0000000 --- a/Playbooks/roles/init_lxd/vars/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -# vars file for roles/init_lxd -lxd_init_yaml_config_path: "files/default_config.yml" \ No newline at end of file diff --git a/Playbooks/roles/new_sudoers_user/.travis.yml b/Playbooks/roles/new_sudoers_user/.travis.yml deleted file mode 100644 index 36bbf62..0000000 --- a/Playbooks/roles/new_sudoers_user/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -language: python -python: "2.7" - -# Use the new container infrastructure -sudo: false - -# Install ansible -addons: - apt: - packages: - - python-pip - -install: - # Install ansible - - pip install ansible - - # Check ansible version - - ansible --version - - # Create ansible.cfg with correct roles_path - - printf '[defaults]\nroles_path=../' >ansible.cfg - -script: - # Basic role syntax check - - ansible-playbook tests/test.yml -i tests/inventory --syntax-check - -notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/Playbooks/roles/new_sudoers_user/README.md b/Playbooks/roles/new_sudoers_user/README.md deleted file mode 100644 index 225dd44..0000000 --- a/Playbooks/roles/new_sudoers_user/README.md +++ /dev/null @@ -1,38 +0,0 @@ -Role Name -========= - -A brief description of the role goes here. - -Requirements ------------- - -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. - -Role Variables --------------- - -A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. - -Dependencies ------------- - -A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. - -Example Playbook ----------------- - -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: - - - hosts: servers - roles: - - { role: username.rolename, x: 42 } - -License -------- - -BSD - -Author Information ------------------- - -An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/Playbooks/roles/new_sudoers_user/handlers/main.yml b/Playbooks/roles/new_sudoers_user/handlers/main.yml deleted file mode 100644 index 78b0ba7..0000000 --- a/Playbooks/roles/new_sudoers_user/handlers/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# handlers file for roles/new_sudoers_user diff --git a/Playbooks/roles/new_sudoers_user/meta/main.yml b/Playbooks/roles/new_sudoers_user/meta/main.yml deleted file mode 100644 index c572acc..0000000 --- a/Playbooks/roles/new_sudoers_user/meta/main.yml +++ /dev/null @@ -1,52 +0,0 @@ -galaxy_info: - author: your name - description: your role description - company: your company (optional) - - # If the issue tracker for your role is not on github, uncomment the - # next line and provide a value - # issue_tracker_url: http://example.com/issue/tracker - - # Choose a valid license ID from https://spdx.org - some suggested licenses: - # - BSD-3-Clause (default) - # - MIT - # - GPL-2.0-or-later - # - GPL-3.0-only - # - Apache-2.0 - # - CC-BY-4.0 - license: license (GPL-2.0-or-later, MIT, etc) - - min_ansible_version: 2.1 - - # If this a Container Enabled role, provide the minimum Ansible Container version. - # min_ansible_container_version: - - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - # platforms: - # - name: Fedora - # versions: - # - all - # - 25 - # - name: SomePlatform - # versions: - # - all - # - 1.0 - # - 7 - # - 99.99 - - galaxy_tags: [] - # List tags for your role here, one per line. A tag is a keyword that describes - # and categorizes the role. Users find roles by searching for tags. Be sure to - # remove the '[]' above, if you add tags to this list. - # - # NOTE: A tag is limited to a single word comprised of alphanumeric characters. - # Maximum 20 tags per role. - -dependencies: [] - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/Playbooks/roles/new_sudoers_user/files/sudoers.d.j2 b/Playbooks/roles/new_sudoers_user/templates/sudoers.d.j2 similarity index 100% rename from Playbooks/roles/new_sudoers_user/files/sudoers.d.j2 rename to Playbooks/roles/new_sudoers_user/templates/sudoers.d.j2 diff --git a/Playbooks/roles/new_sudoers_user/tests/inventory b/Playbooks/roles/new_sudoers_user/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/Playbooks/roles/new_sudoers_user/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/Playbooks/roles/new_sudoers_user/tests/test.yml b/Playbooks/roles/new_sudoers_user/tests/test.yml deleted file mode 100644 index f8259d5..0000000 --- a/Playbooks/roles/new_sudoers_user/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - roles/new_sudoers_user diff --git a/Playbooks/roles/new_sudoers_user/vars/main.yml b/Playbooks/roles/new_sudoers_user/vars/main.yml deleted file mode 100644 index fb89494..0000000 --- a/Playbooks/roles/new_sudoers_user/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for roles/new_sudoers_user diff --git a/Playbooks/test.json b/Playbooks/test.json deleted file mode 100644 index 26f7d0f..0000000 --- a/Playbooks/test.json +++ /dev/null @@ -1 +0,0 @@ -{"inventory_file": "/home/vegetalkiller/git-repositories/ansible_lxd_tests/Inventories/QA", "inventory_dir": "/home/vegetalkiller/git-repositories/ansible_lxd_tests/Inventories", "ansible_ssh_port": 8032, "inventory_hostname": "mps.org.uy", "inventory_hostname_short": "mps", "group_names": ["ubuntu_lxd"], "ansible_facts": {"hostnqn": "", "virtualization_type": "xen", "virtualization_role": "guest", "virtualization_tech_guest": ["xen"], "virtualization_tech_host": [], "ansible_local": {}, "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJxkucvY16FYQhIbIOPjNouvgpyPExfCiXAhy3ZmOtQj8SFVseZrpCm6OKg7vHSxi+lshw9gsIFquPECpk9wXynN3ZQKVXNkYYHYWgE3FFTTdyhpVDny13Cy5go3r4c39B1pP8rDHEBCgjKeUZmpflfgKAvRMypiH1ph20jhxItZAAAAFQDgwwzmzPGxxN2sQivzdMJeW6rFewAAAIAe8jycRXp4KdBZu3oSH3xyoypWd9b0fVC3YQp2Z/Ih3me2pquj6cbeREUs6hBYc3FG20nfE1+Mqej/J1qwGKSeYzmda1AaOgJx0m4D6HP/CDYHFaeBCDkRZYV8Hk0B3ybqTUlNMVaLX682JsQbr4/lwrxguSu7167C7cEHc43rKwAAAIEAj9jdZL99Jq6vh/Yt7XEAn4r+v5tDGeG2TW0stKYQp9FaXUhiJ4FPcNhH5s03QYI0QKJTKX2s8aoh1W/LCoVWQ7dx6iwDjee6SMKXUhHxbuUiv3hNqsHyA2j3UbNMb9r7jTLj4DsXfgR1v8mCp2FuLmAn2rqUATO42F/Ee65ZMk4=", "ssh_host_key_dsa_public_keytype": "ssh-dss", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCjs8cIURn16K93J3gdnlPpKb0nh6nUH9waBKqIrNJyfEdLjXTVpBtazPIWwBIMq3Y2wG9kc2+UuVy843eQqL/AailBeBCfD+O9jdN+WwG44pSn79Wjapf3Wh7Mh7+aI9HjX+jRDl0HNEKnC7WyTcreXRDoOIkcFiGF8bRq50FqSx5VmbOoKZ3TdfqvFtras7cafvWn5BNvrnnneWO1MK7ynworpGgD0lyfiPmLmuWJFjd+upS2ogTha3FgYqOBHTYhTAK+MqGuoJOyumOssprDmFIBhiQCmIQ20X/R0QQN+Ns6EwUzWqPGQ6Q+2wCKIsJ4RQeC6yaGeYsS97/VKzyHknULBY+zWdSuhXCF+zG+EMUvoAAMe0r6tUfwe0fZvWyQqfnqFMrkRgwie6iiHNI90MaduG0GQdon2HRNmyp+8lfp5My6D1NQW1ok4rWWJeyJPhdXyiX9Ul1KZlbkqhbpphWIplFZZD93OBbyKxD67kRJ77dx1o/1chtvPeyPnyM=", "ssh_host_key_rsa_public_keytype": "ssh-rsa", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPGZuE4EaOfe5H1at8jZeo3dxSL14N9KN0OTowmnsYUPXsUKcM23Z6Vtv67XszKLRKzc7D6LCzgeE8KqZlutfeY=", "ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIM2++JbnDowvwt2rhFnXpT8C7h9/DKZt0rzjkGvFuLKc", "ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "user_id": "renzo", "user_uid": 1001, "user_gid": 1001, "user_gecos": "", "user_dir": "/home/renzo", "user_shell": "/bin/sh", "real_user_id": 1001, "effective_user_id": 1001, "real_group_id": 1001, "effective_group_id": 1001, "system": "Linux", "kernel": "5.15.0-41-generic", "kernel_version": "#44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022", "machine": "x86_64", "python_version": "3.10.4", "fqdn": "lxd-ubuntu01", "hostname": "lxd-ubuntu01", "nodename": "lxd-ubuntu01", "domain": "", "userspace_bits": "64", "architecture": "x86_64", "userspace_architecture": "x86_64", "machine_id": "fa8774d7931d4d768fb19302823434fa", "apparmor": {"status": "enabled"}, "distribution": "Ubuntu", "distribution_release": "jammy", "distribution_version": "22.04", "distribution_major_version": "22", "distribution_file_path": "/etc/os-release", "distribution_file_variety": "Debian", "distribution_file_parsed": true, "os_family": "Debian", "fips": false, "iscsi_iqn": "", "date_time": {"year": "2022", "month": "07", "weekday": "Sunday", "weekday_number": "0", "weeknumber": "28", "day": "17", "hour": "04", "minute": "33", "second": "17", "epoch": "1658032397", "epoch_int": "1658032397", "date": "2022-07-17", "time": "04:33:17", "iso8601_micro": "2022-07-17T04:33:17.332687Z", "iso8601": "2022-07-17T04:33:17Z", "iso8601_basic": "20220717T043317332687", "iso8601_basic_short": "20220717T043317", "tz": "UTC", "tz_dst": "UTC", "tz_offset": "+0000"}, "system_capabilities_enforced": "True", "system_capabilities": [""], "python": {"version": {"major": 3, "minor": 10, "micro": 4, "releaselevel": "final", "serial": 0}, "version_info": [3, 10, 4, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "dns": {"nameservers": ["127.0.0.53"], "options": {"edns0": true, "trust-ad": true}, "search": ["lan"]}, "cmdline": {"BOOT_IMAGE": "/vmlinuz-5.15.0-41-generic", "root": "/dev/mapper/ubuntu--vg-ubuntu--lv", "ro": true}, "proc_cmdline": {"BOOT_IMAGE": "/vmlinuz-5.15.0-41-generic", "root": "/dev/mapper/ubuntu--vg-ubuntu--lv", "ro": true}, "interfaces": ["eth0", "lo"], "eth0": {"device": "eth0", "macaddress": "16:dd:ad:94:10:42", "mtu": 1500, "active": true, "module": "xen_netfront", "type": "ether", "pciid": "vif-0", "promisc": false, "ipv4": {"address": "192.168.123.2", "broadcast": "192.168.123.255", "netmask": "255.255.255.0", "network": "192.168.123.0"}, "ipv6": [{"address": "fe80::14dd:adff:fe94:1042", "prefix": "64", "scope": "link"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "on [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv6": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "off [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]", "rx_udp_gro_forwarding": "off", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_dup_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "on", "tx_gso_list": "on", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]", "rx_udp_gro_forwarding": "off", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_dup_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "default_ipv4": {"gateway": "192.168.123.1", "interface": "eth0", "address": "192.168.123.2", "broadcast": "192.168.123.255", "netmask": "255.255.255.0", "network": "192.168.123.0", "macaddress": "16:dd:ad:94:10:42", "mtu": 1500, "type": "ether", "alias": "eth0"}, "default_ipv6": {}, "all_ipv4_addresses": ["192.168.123.2"], "all_ipv6_addresses": ["fe80::14dd:adff:fe94:1042"], "pkg_mgr": "apt", "is_chroot": false, "processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU 5160 @ 3.00GHz"], "processor_count": 1, "processor_cores": 1, "processor_threads_per_core": 1, "processor_vcpus": 1, "processor_nproc": 1, "memtotal_mb": 3900, "memfree_mb": 2082, "swaptotal_mb": 0, "swapfree_mb": 0, "memory_mb": {"real": {"total": 3900, "used": 1818, "free": 2082}, "nocache": {"free": 3408, "used": 492}, "swap": {"total": 0, "free": 0, "used": 0, "cached": 0}}, "bios_date": "06/23/2022", "bios_vendor": "Xen", "bios_version": "4.13", "board_asset_tag": "NA", "board_name": "NA", "board_serial": "NA", "board_vendor": "NA", "board_version": "NA", "chassis_asset_tag": "NA", "chassis_serial": "NA", "chassis_vendor": "Xen", "chassis_version": "NA", "form_factor": "Other", "product_name": "HVM domU", "product_serial": "NA", "product_uuid": "NA", "product_version": "4.13", "system_vendor": "Xen", "devices": {"loop1": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "209720", "sectorsize": "512", "size": "102.40 MB", "host": "", "holders": []}, "xvda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"xvda2": {"links": {"ids": [], "uuids": ["059d70a1-c44d-4e75-b020-0f69d7b1afd9"], "labels": [], "masters": []}, "start": "4096", "sectors": "3670016", "sectorsize": 512, "size": "1.75 GB", "uuid": "059d70a1-c44d-4e75-b020-0f69d7b1afd9", "holders": []}, "xvda3": {"links": {"ids": ["lvm-pv-uuid-XXesQM-ij7L-kVC4-78nK-lb2K-44wf-QwCPVt"], "uuids": [], "labels": [], "masters": ["dm-0"]}, "start": "3674112", "sectors": "17295360", "sectorsize": 512, "size": "8.25 GB", "uuid": null, "holders": ["ubuntu--vg-ubuntu--lv"]}, "xvda1": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "2048", "sectors": "2048", "sectorsize": 512, "size": "1.00 MB", "uuid": null, "holders": []}}, "rotational": "0", "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "host": "", "holders": []}, "loop6": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop4": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "96176", "sectorsize": "512", "size": "46.96 MB", "host": "", "holders": []}, "sr0": {"virtual": 1, "links": {"ids": ["ata-QEMU_DVD-ROM_QM00004", "scsi-0QEMU_QEMU_DVD-ROM_QM00004", "scsi-1ATA_QEMU_DVD-ROM_QM00004"], "uuids": [], "labels": [], "masters": []}, "vendor": "QEMU", "model": "QEMU DVD-ROM", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "holders": []}, "loop2": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "126760", "sectorsize": "512", "size": "61.89 MB", "host": "", "holders": []}, "loop0": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "126824", "sectorsize": "512", "size": "61.93 MB", "host": "", "holders": []}, "dm-0": {"virtual": 1, "links": {"ids": ["dm-name-ubuntu--vg-ubuntu--lv", "dm-uuid-LVM-01YFO7twq19gH3ehBQTIs21MhqZvTdkGSfJj3y6hwu616oaKpF1S8OMvFaORxhEq"], "uuids": ["8cab9bfc-541e-493f-ab14-c288a51589f0"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "0", "scheduler_mode": "", "sectors": "17293312", "sectorsize": "512", "size": "8.25 GB", "host": "", "holders": []}, "xvdb": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"xvdb9": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "83867648", "sectors": "16384", "sectorsize": 512, "size": "8.00 MB", "uuid": null, "holders": []}, "xvdb1": {"links": {"ids": [], "uuids": ["2840348540225335306"], "labels": ["default"], "masters": []}, "start": "2048", "sectors": "83865600", "sectorsize": 512, "size": "39.99 GB", "uuid": "2840348540225335306", "holders": []}}, "rotational": "0", "scheduler_mode": "mq-deadline", "sectors": "83886080", "sectorsize": "512", "size": "40.00 GB", "host": "", "holders": []}, "loop7": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop5": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop3": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "91496", "sectorsize": "512", "size": "44.68 MB", "host": "", "holders": []}}, "device_links": {"ids": {"dm-0": ["dm-name-ubuntu--vg-ubuntu--lv", "dm-uuid-LVM-01YFO7twq19gH3ehBQTIs21MhqZvTdkGSfJj3y6hwu616oaKpF1S8OMvFaORxhEq"], "xvda3": ["lvm-pv-uuid-XXesQM-ij7L-kVC4-78nK-lb2K-44wf-QwCPVt"], "sr0": ["ata-QEMU_DVD-ROM_QM00004", "scsi-0QEMU_QEMU_DVD-ROM_QM00004", "scsi-1ATA_QEMU_DVD-ROM_QM00004"]}, "uuids": {"xvda2": ["059d70a1-c44d-4e75-b020-0f69d7b1afd9"], "dm-0": ["8cab9bfc-541e-493f-ab14-c288a51589f0"], "xvdb1": ["2840348540225335306"]}, "labels": {"xvdb1": ["default"]}, "masters": {"xvda3": ["dm-0"]}}, "uptime_seconds": 198034, "mounts": [{"mount": "/", "device": "/dev/mapper/ubuntu--vg-ubuntu--lv", "fstype": "ext4", "options": "rw,relatime", "size_total": 8610254848, "size_available": 3977764864, "block_size": 4096, "block_total": 2102113, "block_available": 971134, "block_used": 1130979, "inode_total": 540672, "inode_available": 369378, "inode_used": 171294, "uuid": "8cab9bfc-541e-493f-ab14-c288a51589f0"}, {"mount": "/boot", "device": "/dev/xvda2", "fstype": "ext4", "options": "rw,relatime", "size_total": 1810489344, "size_available": 1444696064, "block_size": 4096, "block_total": 442014, "block_available": 352709, "block_used": 89305, "inode_total": 114688, "inode_available": 114368, "inode_used": 320, "uuid": "059d70a1-c44d-4e75-b020-0f69d7b1afd9"}, {"mount": "/snap/core20/1518", "device": "/dev/loop0", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 65011712, "size_available": 0, "block_size": 131072, "block_total": 496, "block_available": 0, "block_used": 496, "inode_total": 11789, "inode_available": 0, "inode_used": 11789, "uuid": "N/A"}, {"mount": "/snap/core20/1405", "device": "/dev/loop2", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 65011712, "size_available": 0, "block_size": 131072, "block_total": 496, "block_available": 0, "block_used": 496, "inode_total": 11778, "inode_available": 0, "inode_used": 11778, "uuid": "N/A"}, {"mount": "/snap/snapd/15534", "device": "/dev/loop3", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 46923776, "size_available": 0, "block_size": 131072, "block_total": 358, "block_available": 0, "block_used": 358, "inode_total": 484, "inode_available": 0, "inode_used": 484, "uuid": "N/A"}, {"mount": "/snap/snapd/16292", "device": "/dev/loop4", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 49283072, "size_available": 0, "block_size": 131072, "block_total": 376, "block_available": 0, "block_used": 376, "inode_total": 486, "inode_available": 0, "inode_used": 486, "uuid": "N/A"}, {"mount": "/snap/lxd/23270", "device": "/dev/loop1", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 107479040, "size_available": 0, "block_size": 131072, "block_total": 820, "block_available": 0, "block_used": 820, "inode_total": 816, "inode_available": 0, "inode_used": 816, "uuid": "N/A"}], "env": {"MAIL": "/var/mail/renzo", "USER": "renzo", "SSH_CLIENT": "167.62.128.63 57852 22", "HOME": "/home/renzo", "SSH_TTY": "/dev/pts/0", "LOGNAME": "renzo", "TERM": "xterm-256color", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games", "LANG": "en_US.UTF-8", "SHELL": "/bin/sh", "PWD": "/home/renzo", "SSH_CONNECTION": "167.62.128.63 57852 192.168.123.2 22"}, "selinux_python_present": true, "selinux": {"status": "disabled"}, "lsb": {"id": "Ubuntu", "description": "Ubuntu 22.04 LTS", "release": "22.04", "codename": "jammy", "major_release": "22"}, "fibre_channel_wwn": [], "service_mgr": "systemd", "gather_subset": ["all"], "module_setup": true, "discovered_interpreter_python": "/usr/bin/python3", "_ansible_facts_gathered": true}, "ansible_hostnqn": "", "ansible_virtualization_type": "xen", "ansible_virtualization_role": "guest", "ansible_virtualization_tech_guest": ["xen"], "ansible_virtualization_tech_host": [], "ansible_local": {}, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJxkucvY16FYQhIbIOPjNouvgpyPExfCiXAhy3ZmOtQj8SFVseZrpCm6OKg7vHSxi+lshw9gsIFquPECpk9wXynN3ZQKVXNkYYHYWgE3FFTTdyhpVDny13Cy5go3r4c39B1pP8rDHEBCgjKeUZmpflfgKAvRMypiH1ph20jhxItZAAAAFQDgwwzmzPGxxN2sQivzdMJeW6rFewAAAIAe8jycRXp4KdBZu3oSH3xyoypWd9b0fVC3YQp2Z/Ih3me2pquj6cbeREUs6hBYc3FG20nfE1+Mqej/J1qwGKSeYzmda1AaOgJx0m4D6HP/CDYHFaeBCDkRZYV8Hk0B3ybqTUlNMVaLX682JsQbr4/lwrxguSu7167C7cEHc43rKwAAAIEAj9jdZL99Jq6vh/Yt7XEAn4r+v5tDGeG2TW0stKYQp9FaXUhiJ4FPcNhH5s03QYI0QKJTKX2s8aoh1W/LCoVWQ7dx6iwDjee6SMKXUhHxbuUiv3hNqsHyA2j3UbNMb9r7jTLj4DsXfgR1v8mCp2FuLmAn2rqUATO42F/Ee65ZMk4=", "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCjs8cIURn16K93J3gdnlPpKb0nh6nUH9waBKqIrNJyfEdLjXTVpBtazPIWwBIMq3Y2wG9kc2+UuVy843eQqL/AailBeBCfD+O9jdN+WwG44pSn79Wjapf3Wh7Mh7+aI9HjX+jRDl0HNEKnC7WyTcreXRDoOIkcFiGF8bRq50FqSx5VmbOoKZ3TdfqvFtras7cafvWn5BNvrnnneWO1MK7ynworpGgD0lyfiPmLmuWJFjd+upS2ogTha3FgYqOBHTYhTAK+MqGuoJOyumOssprDmFIBhiQCmIQ20X/R0QQN+Ns6EwUzWqPGQ6Q+2wCKIsJ4RQeC6yaGeYsS97/VKzyHknULBY+zWdSuhXCF+zG+EMUvoAAMe0r6tUfwe0fZvWyQqfnqFMrkRgwie6iiHNI90MaduG0GQdon2HRNmyp+8lfp5My6D1NQW1ok4rWWJeyJPhdXyiX9Ul1KZlbkqhbpphWIplFZZD93OBbyKxD67kRJ77dx1o/1chtvPeyPnyM=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPGZuE4EaOfe5H1at8jZeo3dxSL14N9KN0OTowmnsYUPXsUKcM23Z6Vtv67XszKLRKzc7D6LCzgeE8KqZlutfeY=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIM2++JbnDowvwt2rhFnXpT8C7h9/DKZt0rzjkGvFuLKc", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_user_id": "renzo", "ansible_user_uid": 1001, "ansible_user_gid": 1001, "ansible_user_gecos": "", "ansible_user_dir": "/home/renzo", "ansible_user_shell": "/bin/sh", "ansible_real_user_id": 1001, "ansible_effective_user_id": 1001, "ansible_real_group_id": 1001, "ansible_effective_group_id": 1001, "ansible_system": "Linux", "ansible_kernel": "5.15.0-41-generic", "ansible_kernel_version": "#44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022", "ansible_machine": "x86_64", "ansible_python_version": "3.10.4", "ansible_fqdn": "lxd-ubuntu01", "ansible_hostname": "lxd-ubuntu01", "ansible_nodename": "lxd-ubuntu01", "ansible_domain": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "fa8774d7931d4d768fb19302823434fa", "ansible_apparmor": {"status": "enabled"}, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "jammy", "ansible_distribution_version": "22.04", "ansible_distribution_major_version": "22", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "ansible_fips": false, "ansible_iscsi_iqn": "", "ansible_date_time": {"year": "2022", "month": "07", "weekday": "Sunday", "weekday_number": "0", "weeknumber": "28", "day": "17", "hour": "04", "minute": "33", "second": "17", "epoch": "1658032397", "epoch_int": "1658032397", "date": "2022-07-17", "time": "04:33:17", "iso8601_micro": "2022-07-17T04:33:17.332687Z", "iso8601": "2022-07-17T04:33:17Z", "iso8601_basic": "20220717T043317332687", "iso8601_basic_short": "20220717T043317", "tz": "UTC", "tz_dst": "UTC", "tz_offset": "+0000"}, "ansible_system_capabilities_enforced": "True", "ansible_system_capabilities": [""], "ansible_python": {"version": {"major": 3, "minor": 10, "micro": 4, "releaselevel": "final", "serial": 0}, "version_info": [3, 10, 4, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_dns": {"nameservers": ["127.0.0.53"], "options": {"edns0": true, "trust-ad": true}, "search": ["lan"]}, "ansible_cmdline": {"BOOT_IMAGE": "/vmlinuz-5.15.0-41-generic", "root": "/dev/mapper/ubuntu--vg-ubuntu--lv", "ro": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/vmlinuz-5.15.0-41-generic", "root": "/dev/mapper/ubuntu--vg-ubuntu--lv", "ro": true}, "ansible_interfaces": ["eth0", "lo"], "ansible_eth0": {"device": "eth0", "macaddress": "16:dd:ad:94:10:42", "mtu": 1500, "active": true, "module": "xen_netfront", "type": "ether", "pciid": "vif-0", "promisc": false, "ipv4": {"address": "192.168.123.2", "broadcast": "192.168.123.255", "netmask": "255.255.255.0", "network": "192.168.123.0"}, "ipv6": [{"address": "fe80::14dd:adff:fe94:1042", "prefix": "64", "scope": "link"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "on [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv6": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "off [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]", "rx_udp_gro_forwarding": "off", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_dup_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "on", "tx_gso_list": "on", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]", "rx_udp_gro_forwarding": "off", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_dup_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_default_ipv4": {"gateway": "192.168.123.1", "interface": "eth0", "address": "192.168.123.2", "broadcast": "192.168.123.255", "netmask": "255.255.255.0", "network": "192.168.123.0", "macaddress": "16:dd:ad:94:10:42", "mtu": 1500, "type": "ether", "alias": "eth0"}, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": ["192.168.123.2"], "ansible_all_ipv6_addresses": ["fe80::14dd:adff:fe94:1042"], "ansible_pkg_mgr": "apt", "ansible_is_chroot": false, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU 5160 @ 3.00GHz"], "ansible_processor_count": 1, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 1, "ansible_processor_nproc": 1, "ansible_memtotal_mb": 3900, "ansible_memfree_mb": 2082, "ansible_swaptotal_mb": 0, "ansible_swapfree_mb": 0, "ansible_memory_mb": {"real": {"total": 3900, "used": 1818, "free": 2082}, "nocache": {"free": 3408, "used": 492}, "swap": {"total": 0, "free": 0, "used": 0, "cached": 0}}, "ansible_bios_date": "06/23/2022", "ansible_bios_vendor": "Xen", "ansible_bios_version": "4.13", "ansible_board_asset_tag": "NA", "ansible_board_name": "NA", "ansible_board_serial": "NA", "ansible_board_vendor": "NA", "ansible_board_version": "NA", "ansible_chassis_asset_tag": "NA", "ansible_chassis_serial": "NA", "ansible_chassis_vendor": "Xen", "ansible_chassis_version": "NA", "ansible_form_factor": "Other", "ansible_product_name": "HVM domU", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "4.13", "ansible_system_vendor": "Xen", "ansible_devices": {"loop1": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "209720", "sectorsize": "512", "size": "102.40 MB", "host": "", "holders": []}, "xvda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"xvda2": {"links": {"ids": [], "uuids": ["059d70a1-c44d-4e75-b020-0f69d7b1afd9"], "labels": [], "masters": []}, "start": "4096", "sectors": "3670016", "sectorsize": 512, "size": "1.75 GB", "uuid": "059d70a1-c44d-4e75-b020-0f69d7b1afd9", "holders": []}, "xvda3": {"links": {"ids": ["lvm-pv-uuid-XXesQM-ij7L-kVC4-78nK-lb2K-44wf-QwCPVt"], "uuids": [], "labels": [], "masters": ["dm-0"]}, "start": "3674112", "sectors": "17295360", "sectorsize": 512, "size": "8.25 GB", "uuid": null, "holders": ["ubuntu--vg-ubuntu--lv"]}, "xvda1": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "2048", "sectors": "2048", "sectorsize": 512, "size": "1.00 MB", "uuid": null, "holders": []}}, "rotational": "0", "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "host": "", "holders": []}, "loop6": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop4": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "96176", "sectorsize": "512", "size": "46.96 MB", "host": "", "holders": []}, "sr0": {"virtual": 1, "links": {"ids": ["ata-QEMU_DVD-ROM_QM00004", "scsi-0QEMU_QEMU_DVD-ROM_QM00004", "scsi-1ATA_QEMU_DVD-ROM_QM00004"], "uuids": [], "labels": [], "masters": []}, "vendor": "QEMU", "model": "QEMU DVD-ROM", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "holders": []}, "loop2": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "126760", "sectorsize": "512", "size": "61.89 MB", "host": "", "holders": []}, "loop0": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "126824", "sectorsize": "512", "size": "61.93 MB", "host": "", "holders": []}, "dm-0": {"virtual": 1, "links": {"ids": ["dm-name-ubuntu--vg-ubuntu--lv", "dm-uuid-LVM-01YFO7twq19gH3ehBQTIs21MhqZvTdkGSfJj3y6hwu616oaKpF1S8OMvFaORxhEq"], "uuids": ["8cab9bfc-541e-493f-ab14-c288a51589f0"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "0", "scheduler_mode": "", "sectors": "17293312", "sectorsize": "512", "size": "8.25 GB", "host": "", "holders": []}, "xvdb": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"xvdb9": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "83867648", "sectors": "16384", "sectorsize": 512, "size": "8.00 MB", "uuid": null, "holders": []}, "xvdb1": {"links": {"ids": [], "uuids": ["2840348540225335306"], "labels": ["default"], "masters": []}, "start": "2048", "sectors": "83865600", "sectorsize": 512, "size": "39.99 GB", "uuid": "2840348540225335306", "holders": []}}, "rotational": "0", "scheduler_mode": "mq-deadline", "sectors": "83886080", "sectorsize": "512", "size": "40.00 GB", "host": "", "holders": []}, "loop7": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop5": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop3": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "91496", "sectorsize": "512", "size": "44.68 MB", "host": "", "holders": []}}, "ansible_device_links": {"ids": {"dm-0": ["dm-name-ubuntu--vg-ubuntu--lv", "dm-uuid-LVM-01YFO7twq19gH3ehBQTIs21MhqZvTdkGSfJj3y6hwu616oaKpF1S8OMvFaORxhEq"], "xvda3": ["lvm-pv-uuid-XXesQM-ij7L-kVC4-78nK-lb2K-44wf-QwCPVt"], "sr0": ["ata-QEMU_DVD-ROM_QM00004", "scsi-0QEMU_QEMU_DVD-ROM_QM00004", "scsi-1ATA_QEMU_DVD-ROM_QM00004"]}, "uuids": {"xvda2": ["059d70a1-c44d-4e75-b020-0f69d7b1afd9"], "dm-0": ["8cab9bfc-541e-493f-ab14-c288a51589f0"], "xvdb1": ["2840348540225335306"]}, "labels": {"xvdb1": ["default"]}, "masters": {"xvda3": ["dm-0"]}}, "ansible_uptime_seconds": 198034, "ansible_mounts": [{"mount": "/", "device": "/dev/mapper/ubuntu--vg-ubuntu--lv", "fstype": "ext4", "options": "rw,relatime", "size_total": 8610254848, "size_available": 3977764864, "block_size": 4096, "block_total": 2102113, "block_available": 971134, "block_used": 1130979, "inode_total": 540672, "inode_available": 369378, "inode_used": 171294, "uuid": "8cab9bfc-541e-493f-ab14-c288a51589f0"}, {"mount": "/boot", "device": "/dev/xvda2", "fstype": "ext4", "options": "rw,relatime", "size_total": 1810489344, "size_available": 1444696064, "block_size": 4096, "block_total": 442014, "block_available": 352709, "block_used": 89305, "inode_total": 114688, "inode_available": 114368, "inode_used": 320, "uuid": "059d70a1-c44d-4e75-b020-0f69d7b1afd9"}, {"mount": "/snap/core20/1518", "device": "/dev/loop0", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 65011712, "size_available": 0, "block_size": 131072, "block_total": 496, "block_available": 0, "block_used": 496, "inode_total": 11789, "inode_available": 0, "inode_used": 11789, "uuid": "N/A"}, {"mount": "/snap/core20/1405", "device": "/dev/loop2", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 65011712, "size_available": 0, "block_size": 131072, "block_total": 496, "block_available": 0, "block_used": 496, "inode_total": 11778, "inode_available": 0, "inode_used": 11778, "uuid": "N/A"}, {"mount": "/snap/snapd/15534", "device": "/dev/loop3", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 46923776, "size_available": 0, "block_size": 131072, "block_total": 358, "block_available": 0, "block_used": 358, "inode_total": 484, "inode_available": 0, "inode_used": 484, "uuid": "N/A"}, {"mount": "/snap/snapd/16292", "device": "/dev/loop4", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 49283072, "size_available": 0, "block_size": 131072, "block_total": 376, "block_available": 0, "block_used": 376, "inode_total": 486, "inode_available": 0, "inode_used": 486, "uuid": "N/A"}, {"mount": "/snap/lxd/23270", "device": "/dev/loop1", "fstype": "squashfs", "options": "ro,nodev,relatime,errors=continue", "size_total": 107479040, "size_available": 0, "block_size": 131072, "block_total": 820, "block_available": 0, "block_used": 820, "inode_total": 816, "inode_available": 0, "inode_used": 816, "uuid": "N/A"}], "ansible_env": {"MAIL": "/var/mail/renzo", "USER": "renzo", "SSH_CLIENT": "167.62.128.63 57852 22", "HOME": "/home/renzo", "SSH_TTY": "/dev/pts/0", "LOGNAME": "renzo", "TERM": "xterm-256color", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games", "LANG": "en_US.UTF-8", "SHELL": "/bin/sh", "PWD": "/home/renzo", "SSH_CONNECTION": "167.62.128.63 57852 192.168.123.2 22"}, "ansible_selinux_python_present": true, "ansible_selinux": {"status": "disabled"}, "ansible_lsb": {"id": "Ubuntu", "description": "Ubuntu 22.04 LTS", "release": "22.04", "codename": "jammy", "major_release": "22"}, "ansible_fibre_channel_wwn": [], "ansible_service_mgr": "systemd", "gather_subset": ["all"], "module_setup": true, "discovered_interpreter_python": "/usr/bin/python3", "playbook_dir": "/home/vegetalkiller/git-repositories/ansible_lxd_tests/Playbooks", "ansible_playbook_python": "/usr/bin/python3", "ansible_config_file": "/home/vegetalkiller/git-repositories/ansible_lxd_tests/ansible.cfg", "groups": {"all": ["mps.org.uy"], "ungrouped": [], "ubuntu_lxd": ["mps.org.uy"]}, "ansible_version": {"string": "2.12.6", "full": "2.12.6", "major": 2, "minor": 12, "revision": 6}, "ansible_check_mode": false, "ansible_diff_mode": false, "ansible_forks": 5, "ansible_inventory_sources": ["/home/vegetalkiller/git-repositories/ansible_lxd_tests/Inventories/QA"], "ansible_skip_tags": [], "ansible_run_tags": ["all"], "ansible_verbosity": 1} \ No newline at end of file diff --git a/README.md b/README.md index 2567ac5..a964770 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ + ### Probablemente precises generar tu propio ansible.cfg y configurarlo. + # Run 01 +ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA -v -ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA -v [-t 'rollback'] +### Rollback +aƱadir el tag 'rollback' +[-t 'rollback'] \ No newline at end of file