Skip to content

Instantly share code, notes, and snippets.

View dmsimard's full-sized avatar

David Moreau Simard dmsimard

View GitHub Profile
@dmsimard
dmsimard / asciiflow.txt
Created November 19, 2022 23:40
ara internal workflow
Foreground
(synchronous, blocking) ┌─► v2_playbook_on_task_start
│ v2_runner_on_ok
│ - wait for previous task pool (if any) v2_runner_on_unreachable ┌─► v2_playbook_on_stats
┌─► __init__ ┌─► v2_playbook_on_start │ - initialize task thread pool v2_runner_on_failed │
│ │ ┌─► v2_playbook_on_play_start │ - self.client.post("/api/v1/files") ┌─► v2_runner_on_skipped
@dmsimard
dmsimard / failed.txt
Last active March 23, 2022 00:51
include_role runner_on_ok
$ ansible-playbook failed.yml || echo $?
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
2022-03-22 20:40:05,541 DEBUG ara.plugins.callback.default: v2_playbook_on_start
PLAY [Reproducer that fails] ****************************************************************************************************************************************************************************************************************************
2022-03-22 20:40:05,592 DEBUG ara.plugins.callback.default: v2_playbook_on_play_start
TASK [Include a role that does not exist] ***************************************************************************************************************************************************************************************************************
2022-03-22 20:40:05,741 DEBUG ara.plugins.callback.default: v2_playbook_on_task_start
@dmsimard
dmsimard / ansible-core2.12-modules.txt
Created March 22, 2022 15:10
ansible plugin and module count
# find lib/ansible/modules/ -type f -name "*.py" | grep -v __init__.py
lib/ansible/modules/known_hosts.py
lib/ansible/modules/_include.py
lib/ansible/modules/user.py
lib/ansible/modules/service.py
lib/ansible/modules/command.py
lib/ansible/modules/include_vars.py
lib/ansible/modules/copy.py
lib/ansible/modules/wait_for.py
lib/ansible/modules/meta.py
@dmsimard
dmsimard / removed_files.log
Created January 7, 2022 19:05
fedora ansible packaging removed files
This file has been truncated, but you can view the full file.
# via https://src.fedoraproject.org/rpms/ansible/pull-request/19
# Files removed from packaging, see https://github.com/ansible-community/community-topics/issues/29
ansible_collections/google/cloud/.ansible-lint
ansible_collections/google/cloud/roles/stackdriver_logging/molecule/default/.ansible-lint
ansible_collections/google/cloud/roles/stackdriver_logging/molecule/default/.yamllint
ansible_collections/google/cloud/roles/stackdriver_monitoring/molecule/default/.ansible-lint
ansible_collections/google/cloud/roles/stackdriver_monitoring/molecule/default/.yamllint
ansible_collections/google/cloud/.yamllint
ansible_collections/google/cloud/.github
ansible_collections/google/cloud/.github/workflows
@dmsimard
dmsimard / ara-with-centos7.sh
Created November 12, 2021 04:18
ara callback on centos7
#!/bin/bash
# From a fresh CentOS7 image
yum -y update
yum -y install git python3 python3-pip
python3 -m pip install venv
python3 -m venv ~/venv
source ~/venv/bin/activate
pip install pip --upgrade
pip install ara ansible-core
@dmsimard
dmsimard / collection-repos.py
Created October 19, 2021 14:51
List of git repositories for collections included in the Ansible package
#!/usr/bin/env python3
# Query an ansible.in file to retrieve the list of collections included in the Ansible
# package so we can query galaxy and retrieve their git repositories.
# ansible.in files can be cloned from ansible-build-data:
# - https://github.com/ansible-community/ansible-build-data/blob/main/2.10/ansible.in
# - https://github.com/ansible-community/ansible-build-data/blob/main/3/ansible.in
import argparse
import json
import logging

hi, and goodbye

The past few weeks has not been fun on IRC, the drama based on false information and assumptions has been insane. I've almost entirely been silent on the drama because I know the fallout that would happen if I spoke up.

A quick TLDR - I'm quitting all IRC development. KiwiIRC project lead, IRCv3 technical board, supporting the multitude of IRC networks, the lot.

Many people seem to think that I am supporting one side in everything that is going on, so just to be clear: I am not supporting any side of the current freenode drama - there is so much false information going around from everywhere that it is impossible to support anybody.

Woo freenode drama

@dmsimard
dmsimard / playbook.yml
Last active February 16, 2021 17:23
Installing ara with ansible
- name: Install ara with ansible
hosts: localhost
gather_facts: yes
tasks:
- name: Install ara for the current user
command: "{{ ansible_python }} -m pip install ara[server]"
- name: Get path to the ara callback plugin
command: "{{ ansible_python }} -m ara.setup.callback_plugins"
register: _callback_plugins
@dmsimard
dmsimard / deps-to-galaxy.py
Last active February 2, 2021 02:27
deps to galaxy requirements.yml
#!/usr/bin/env python3
import argparse
import yaml
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("--depsfile", help="Path to the ansible.deps file", required=True)
args = parser.parse_args()
return args
@dmsimard
dmsimard / collection-repos.py
Last active May 19, 2022 00:11
git repos for collections in ansible package
#!/usr/bin/env python3
# Query an ansible.in file to retrieve the list of collections included in the Ansible
# package so we can query galaxy and retrieve their git repositories.
# ansible.in files can be cloned from ansible-build-data:
# - https://github.com/ansible-community/ansible-build-data/blob/main/2.10/ansible.in
# - https://github.com/ansible-community/ansible-build-data/blob/main/3/ansible.in
import argparse
import json
import logging