Skip to content

Instantly share code, notes, and snippets.

View Wicaeed's full-sized avatar

Craig Gill Wicaeed

View GitHub Profile
@Wicaeed
Wicaeed / fstab
Created March 20, 2018 22:15
task.yml
//server.local/Builds /home/username/Builds cifs user=username,uid=username,forceuid,rw,file_mode=0770,dir_mode=0770,sec=krb5,vers=2.0,cruid=username,noauto,_netdev
0 0
[sssd]
services = nss, pam
config_file_version = 2
debug_level = 4
domains = corp.local
[nss]
debug_level = 4
fallback_homedir = /home/%d/%u
default_shell = /bin/bash
The full traceback is:
File "/tmp/ansible_FeiyIe/ansible_modlib.zip/ansible/module_utils/basic.py", line 1024, in selinux_context
ret = selinux.lgetfilecon_raw(to_native(path, errors='surrogate_or_strict'))
- name: Join Active Directory
expect:
command: /bin/bash -c "/usr/sbin/realm join -U {{ adauth_user }} --computer-ou={{ adauth_server_ou }} {{ adauth_realm }}"
responses:
Password for .*: "{{ adauth_password }}"
when: realmd_bound|failed
register: realmd_join
@Wicaeed
Wicaeed / docker-compose.yml
Created September 29, 2017 23:53
docker-compose.yml
services:
db:
container_name: container
image: <image>
restart: always
logging:
driver: "splunk"
options:
"splunk-url": "<splunk>"
"splunk-token": "<token>"
@Wicaeed
Wicaeed / main.yml
Last active September 28, 2017 20:17
Bind Reverse DNS Plugin
# Read all A records from the pool master zone.
# They end up in the `zone` variable, which contains
# a dict mapping qualified names to IPv4 addresses.
# this is the custom plugin `action_plugins/read_zone.py`
- name: load master zone file
action: read_zone inventory="{{ inventory_dir }}"
tags: [ generate-reverse-zone ]
- name: generate reverse zone files
template:
@Wicaeed
Wicaeed / include vars
Last active September 12, 2017 20:37
Ansible VMware Inventory
---
validate_certs: False
host_filters: "{{ config.template != 'templates' }}"
properties:
prop01: name
prop02: instanceUuid
@Wicaeed
Wicaeed / seraph-config.xml
Last active August 7, 2017 22:58
seraph-config.xml
#Search
xml sel -t -v "security-config/parameters/init-param[param-name='login.url']/param-value" seraph-config.xml
#Replace
xml ed -u "security-config/parameters/init-param[param-name='login.url']/param-value" -v 'string' seraph-config.xml
#Add new element?
???
I
1000 Version
SCENERY
SCENERY_PACK Custom Scenery/ff_library/
SCENERY_PACK Custom Scenery/KBOS - Boston Logan International/
SCENERY_PACK Custom Scenery/KBOS - Boston Logan International Orthophotos/
SCENERY_PACK Custom Scenery/KBOS - GroundTraffic City/
SCENERY_PACK Custom Scenery/KLAX - Los Angeles International/
SCENERY_PACK Custom Scenery/KLAX - Los Angeles Orthophotos/
@Wicaeed
Wicaeed / group_vars
Last active February 28, 2020 15:41
I dont get dictionaries and or lists
system_mounts:
- file-store:
local_path: /srv/file-store
remote_path: nfs.domain.com:/ifs/data/blobfs/share
fstype: nfs
mount_opts: noexec,nosuid,hard,vers=3
owner: root
group: adm
mode: 02755
- appliances: