Skip to content

Instantly share code, notes, and snippets.

View zeitounator's full-sized avatar

Olivier Clavel zeitounator

View GitHub Profile
# Note: all names prefixed with `my_` to prevent
# any conflicts on my local machine
$ docker volume create my_mysql
my_mysql
$ docker volume create my_mysql_config
my_mysql_config
$ docker network create my_mysqlnet
$ cat docker-compose.yml
---
services:
sonarqube:
image: ${SONAR_IMAGE}
command: "-Dsonar.search.javaAdditionalOpts=-Dnode.store.allow_mmap=false"
ports:
- "9000:9000"
$ export SONAR_IMAGE=sonarqube:10.0-developer
# Note: this is an exact copy/paste from the question
$ cat test.yml
- hosts: all
name: check patching
gather_facts: 'no'
tasks:
- name: Get list
win_shell: >-
(New-Object -ComObject
Microsoft.Update.Session).CreateupdateSearcher().Search(“IsHidden=0 and
$ ls -l testSO.sh
-rwxr--r-- 1 olcla users 75 mai 22 11:43 testSO.sh
$ cat testSO.sh
#! /usr/bin/env bash
docker exec testSO bash -c "stat -c '%U' /etc/passwd"
$ docker run -d --rm --name testSO ubuntu:latest tail -f /dev/null
f3b812df7bb35eafb2f2c2b144280329e9fa90539845861c619a460465badafb
$ ansible-galaxy collection install -U openstack.cloud --force -vvv
ansible-galaxy [core 2.14.2]
config file = None
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /home/user/.local/bin/ansible-galaxy
python version = 3.9.5 (default, Nov 23 2021, 15:27:38) [GCC 9.3.0] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = True
$ cat testes.py
from elasticsearch import Elasticsearch, helpers
es = Elasticsearch(
['http://localhost:9200'],
basic_auth=('elastic', 'my_pass')
)
print(es.ping())
print(es.info())
$ tree
.
├── inventories
│   └── demo
│   ├── hosts
│   └── host_vars
│   ├── CEASF-RTR.yml
│   └── cowfm-311-core.yml
└── playbook.yml
$ tree
.
├── inventories
│   └── demo
│   ├── group_vars
│   │   └── my_group.yml
│   └── hosts.yml
├── playbook.yml
└── templates
└── my_template.html.j2
$ tree
.
├── library
│   └── Script.py
└── project
└── test.yml
2 directories, 2 files
$ cat library/Script.py