Skip to content

Instantly share code, notes, and snippets.

View robinsg's full-sized avatar

Glenn Robinson robinsg

  • 09:50 (UTC +01:00)
View GitHub Profile
Roles to add/update:
- Add firewalld rules for docker0 trusted zone and masquerade
Role consolidation
- Copy centosLxdDocker roles to dockerInstall roles
- Copy vault info
- create .gitignore and add neceesary files
@robinsg
robinsg / setup_user_and_run_SQL.yml
Last active September 16, 2020 09:01
Ansible for i - Setup user and run SQL statements
---
# install_ptfs_via_imgclg
- name: Set up a user, library and then run SQL statements
hosts: all
vars:
usrprf: 'ROBINSG'
usrcls: '*USER'
homedir: '/home/robinsg'
curlib: "{{ usrprf }}"
text: 'Glenn Robinson'
[defaults]
inventory = inventory.yaml
roles_path = ../roles
interpreter_python = /usr/bin/python3
host_key_checking = False
[ssh_connection]
pipelining = True
scp_if_ssh = smart
- -
### Inventory file in YAML format
all:
children:
dev:
hosts:
dev01:
ansible_host: aix-dev01
dev02:
ansible_host: aix-dev02
- -
# dev_lpar_setup.yml
- name: Set up user groups and directories for AIX Dev LPARs
hosts:
- dev
gather_facts: false
collections:
- ibm.power_aix
roles:
- aix_groups
- - -
# defaults file for roles/aix_groups
dft_group: "appgrp"
- - -
# defaults file for ../roles/aix_users
dft_pwd: "PassW@rd"
user_group: "appgrp"
- - -
# defaults file for ../roles/aix_directories
group: "appgrp"
- - _
# tasks file for ../roles/files
- name: Copy files from the files folder to /tmp on the LPAR
copy:
src: "{{ item }}"
dest: "/tmp"
with_items: "{{ tmp_files }}"
tags:
- copy_files
@robinsg
robinsg / roles-files-files
Created October 30, 2020 15:41
List of file in the file roles
-rw-rw-r - . 1 robinsg robinsg 188 Oct 17 11:16 iocp.add
-r-xr-xr-x. 1 robinsg robinsg 2781 Oct 16 17:00 profile
-r - r - - -. 1 robinsg robinsg 3197 Oct 17 11:14 sudoers