0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWXでCiscoACI(sandbox@Devnet)へテンプレート実行(自分用メモ)

Last updated at Posted at 2020-10-30

AWXでCiscoACI(sandbox@Devnet)へテンプレート実行(自分用メモ)

最近物忘れが激しいので忘れないように作業メモを残します。

[参考 Automating Cisco ACI with Ansible Eliminates Repetitive Day-to-Day Tasks]
https://blogs.cisco.com/developer/automating-cisco-aci-with-ansible-eliminates-repetitive-day-to-day-tasks
[参考 Cisco ACI を Ansible 2.4 で設定してみる]
http://sig9.hatenablog.com/entry/2017/09/20/120000

AWXプロジェクトディレクトリ配下にディレクトリー作成してプロジェクト作成後、

ACI 構成参照 playbook.yml を作成。
[root@CentOS7 ACI]# pwd
/var/lib/awx/projects/ACI
[root@CentOS7 ACI]# cat playbook.yml
- name: Query all tenants/EPGS
  hosts: apic
  connection: local
  gather_facts: no

  tasks:
   - name: Query all tenants
     aci_tenant:
       hostname: "{{ inventory_hostname }}"
       username: "{{ username }}"
       password: "{{ password }}"
       validate_certs: no
       state: query
       output_level: debug

   - name: Query all EPGS
     aci_epg:
       hostname: "{{ inventory_hostname }}"
       username: "{{ username }}"
       password: "{{ password }}"
       validate_certs: no
       state: query
       output_level: debug
AWXでプロジェクト作成

image.png

AWXでインベントリー(ホスト/グループ)作成

image.png

[ ホスト]をクリックしてACI Sandboxを新規追加
image.png

[ グループ]をクリックして playbook定義済みのinventoryグループ名を新規作成
image.png

作成したplaybookで使用する変数定義
image.png

AWXでテンプレート作成

image.png

ACIテンプレートの実行

image.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?