This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: This playbook is an example of cloning a new VM with vmwre.vmware_res | |
hosts: localhost | |
gather_facts: false | |
vars: | |
vcenter_hostname: change me to vcenter host or ip | |
vcenter_username: administrator@vsphere.local | |
vcenter_password: change me to user password | |
folder: F0 | |
template_vm: test_vm1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: "example playbook" | |
hosts: localhost | |
gather_facts: no | |
vars: | |
netbox_url: http:/netbox ip or fqdn/api/ipam/prefixes/ | |
netbox_token: change me | |
target_prefix: "100.64.0.0/24" | |
module_defaults: | |
uri: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from zabbix_api import ZabbixAPI | |
if __name__ == "__main__": | |
url = "" | |
user = "" | |
passwd = "" | |
zapi = ZabbixAPI(server=url) | |
zapi.login(user, passwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[defaults] | |
host_key_checking=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Prepare CI environment for VMware infrastructure | |
hosts: localhost | |
gather_facts: no | |
vars: | |
# common params | |
vcenter_hostname: vcenter server | |
vcenter_username: administrator@vsphere.local | |
vcenter_password: password | |
datacenter: datacenter name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: "PR test for #66860 (https://github.com/ansible/ansible/pull/66860)" | |
hosts: localhost | |
gather_facts: no | |
vars: | |
url: http://127.0.0.1/zabbix # specify zabbix 3.0.x url | |
user: admin | |
passwd: zabbix | |
tasks: | |
- name: delete host from zabbix server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: zabbix containers provisione playbook | |
hosts: localhost | |
gather_facts: no | |
vars: | |
state: present | |
#state: absent | |
subnet: "192.168.100.0/24" | |
zabbix_version: | |
- "3.0.29" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from pyVim.connect import SmartConnect, Disconnect | |
from pyVmomi import vim, vmodl | |
import ssl | |
import atexit | |
host = '' | |
username = '' | |
password = '' | |
mob = vim.VirtualMachine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import absolute_import, division, print_function | |
from pyVim.connect import SmartConnect, Disconnect | |
from pyVmomi import vim | |
from getpass import getpass | |
import ssl | |
import atexit | |
import argparse | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
MAINTAINER sky-joker | |
RUN yum -y install gcc \ | |
gcc-c++ \ | |
mariadb \ | |
mariadb-devel \ | |
httpd httpd-devel \ | |
libxml2-devel \ |
NewerOlder