[Ansible] F5-LTM 使用 ansible 顯示設定 的 playbook
#Step 01 –
---
- name: "Run a tmsh command"
hosts: "{{ F5host }}"
gather_facts: False
connection: local
vars:
validate_certs: no
server: "{{ ansible_host }}"
vars_prompt:
- name: "username"
prompt: "Enter BIG-IP username"
private: yes
- name: "password"
prompt: "Enter BIG-IP password"
private: yes
tasks:
- name: View system version and LTM configuration
bigip_command:
commands:
- list /ltm virtual vs_192.168.71.188_HTTP
provider:
server: "{{ server }}"
password: "{{ password }}"
user: "{{ username }}"
validate_certs: "{{ validate_certs }}"
delegate_to: localhost
register: result
- debug: msg="{{ result.stdout_lines }}"
1. 標題
=================================================================
1.1 小標題
1.2 小標題
1.3 小標題
=================================================================
沒有留言:
張貼留言