Skip to content

Instantly share code, notes, and snippets.

@xenlo
xenlo / ansible_run_zypper_absent.out
Created October 23, 2020 21:46
ansible zypper absent not working with other LANG
(344) xenlo@indigo-faraday:~/Projects/344$ ansible -i inventories/ target -m zypper -a "name=libwbclient0 state=absent" -u root -vvvv
ansible 2.9.14
config file = /home/xenlo/Projects/344/etc/ansible.cfg
configured module search path = ['/home/xenlo/Projects/344/library']
ansible python module location = /home/xenlo/.virtualenvs/344/lib/python3.8/site-packages/ansible
executable location = /home/xenlo/.virtualenvs/344/bin/ansible
python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
Using /home/xenlo/Projects/344/etc/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/xenlo/Projects/344/inventories/ as it did not pass its verify_file() method
@xenlo
xenlo / ansible.log_to_http_ara.my_domain.net
Last active May 19, 2020 10:39
Ara issue, output with a basic playbook which test the local/custom facts to store some meta data on hosts
2020-05-19 12:08:40,367 p=9925 u=xenlo n=ara.plugins.callback.default | v2_playbook_on_start
2020-05-19 12:08:40,368 p=9925 u=xenlo n=ara.plugins.callback.default | Ignoring argument: extra_vars
2020-05-19 12:08:40,373 p=9925 u=xenlo n=urllib3.connectionpool | Starting new HTTP connection (1): ara.my_domain.net:8000
2020-05-19 12:08:40,434 p=9925 u=xenlo n=urllib3.connectionpool | http://ara.my_domain.net:8000 "POST /api/v1/playbooks HTTP/1.1" 201 1113
2020-05-19 12:08:40,435 p=9925 u=xenlo n=ara.clients.http | HTTP 201: post on /api/v1/playbooks
2020-05-19 12:08:40,436 p=9925 u=xenlo n=ara.plugins.callback.default | File not in cache, getting or creating: /home/xenlo/Projects/378/playground/set_local_facts.yml
2020-05-19 12:08:40,440 p=9925 u=xenlo n=urllib3.connectionpool | Resetting dropped connection: ara.my_domain.net
2020-05-19 12:08:40,498 p=9925 u=xenlo n=urllib3.connectionpool | http://ara.my_domain.net:8000 "POST /api/v1/files HTTP/1.1" 201 1144
2020-05-19 12:08:40,500 p=9925 u=xenlo n=ara.clients.h
@xenlo
xenlo / cobbler.completion
Created November 28, 2019 13:13
cobbler PR #2208
#!/usr/bin/env bash
_cobbler_completions()
{
local cur prev cobbler_type
declare -A opts
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
cobbler_type=${COMP_WORDS[1]}
@xenlo
xenlo / gist:5414617
Created April 18, 2013 17:30
[Are SAN boot disks (with "mpath") supported by "rear" ?] "rear -D recover" with "disk /dev/mapper/mpath0" line added in the disklayout.conf
2013-04-18 19:21:24 Relax-and-Recover 1.14 / Git
2013-04-18 19:21:24 Command line options: /bin/rear -D recover
2013-04-18 19:21:24 Using log file: /var/log/rear/rear-uxit400c.log
2013-04-18 19:21:24 Including /etc/rear/os.conf
+ . /etc/rear/os.conf
++ OS_VENDOR=RedHatEnterpriseServer
++ OS_VERSION=5
++ ARCH=Linux-i386
++ OS=GNU/Linux
++ OS_VERSION=5