forked from mlowcher61/F5-Ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bigip_command_test.yml
executable file
·41 lines (38 loc) · 1.49 KB
/
bigip_command_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/ansible-playbook
---
#
# Copyright (c) 2016 F5 Networks
# All rights reserved.
#
# author: Mark Lowcher F5 Networks
# description: This playbook will enable the application Connector
# service center.
# The steps are as follows:
# - Verify that the target F5 device is running v13 or greater
# - Verify that the F5 device is licensed for App Connector.
# - Provision all desired modules including iRulesLX. This playbook will
# provision iRulesLX if you are running Ansible 2.4 and you uncomment
# the provisioning module below.
# - This playbook will enable App Connector.
# NOTICE: Be sure you have staged the files in the ~/ansible/playbooks
# directory as described in the "Ansible Orchestration for Application
# Connector deployment guide located at https://github.com/mlowcher61
# - After running this playbook perform the manual steps described in the
# deployment guide prior to running the appconnector_vips playbook.
- name: Configuring App Connecter service center
hosts: 10.0.0.40
connection: local
gather_facts: no
vars:
server1: "10.0.0.40"
setup_user: "admin"
setup_pass: "admin"
tasks:
- name: Enabling App Connector
bigip_command:
commands: bash run touch /var/config/rest/iapps/test2
server: "{{ server1 }}"
password: "{{ setup_pass }}"
user: "{{ setup_user }}"
validate_certs: "no"
delegate_to: localhost