mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-22 11:54:34 +02:00
Update yamllint config, fix YAML.
Some checks failed
Collection Docs / Build Ansible Docs (push) Has been cancelled
execution environment / Build and test EE (ansible-core devel @ RHEL UBI 9) (push) Has been cancelled
execution environment / Build and test EE (ansible-core 2.15 @ Rocky Linux 9) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
nox / ansible-test (push) Has been cancelled
Collection Docs / Publish Ansible Docs (push) Has been cancelled
Some checks failed
Collection Docs / Build Ansible Docs (push) Has been cancelled
execution environment / Build and test EE (ansible-core devel @ RHEL UBI 9) (push) Has been cancelled
execution environment / Build and test EE (ansible-core 2.15 @ Rocky Linux 9) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
nox / ansible-test (push) Has been cancelled
Collection Docs / Publish Ansible Docs (push) Has been cancelled
This commit is contained in:
parent
aa83116c78
commit
b751d79a98
4 changed files with 68 additions and 14 deletions
|
@ -191,7 +191,7 @@ When this playbook completed successfully, you should be able to use the HTTPS a
|
|||
.. code-block:: yaml+jinja
|
||||
|
||||
- community.routeros.api:
|
||||
...
|
||||
# ...
|
||||
tls: true
|
||||
validate_certs: true
|
||||
validate_cert_hostname: true
|
||||
|
|
|
@ -66,22 +66,22 @@ With the above inventory, you can use the following playbook to execute ``/syste
|
|||
gather_facts: false
|
||||
tasks:
|
||||
|
||||
- name: Gather system resources
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system resource print
|
||||
register: system_resource_print
|
||||
- name: Gather system resources
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system resource print
|
||||
register: system_resource_print
|
||||
|
||||
- name: Show system resources
|
||||
debug:
|
||||
var: system_resource_print.stdout_lines
|
||||
- name: Show system resources
|
||||
debug:
|
||||
var: system_resource_print.stdout_lines
|
||||
|
||||
- name: Gather facts
|
||||
community.routeros.facts:
|
||||
- name: Gather facts
|
||||
community.routeros.facts:
|
||||
|
||||
- name: Show a fact
|
||||
debug:
|
||||
msg: "First IP address: {{ ansible_net_all_ipv4_addresses[0] }}"
|
||||
- name: Show a fact
|
||||
debug:
|
||||
msg: "First IP address: {{ ansible_net_all_ipv4_addresses[0] }}"
|
||||
|
||||
This results in the following output:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue