From b3179604d9d4bd239a0af01be1e59c8215eb9a88 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 27 May 2022 13:53:02 -0500 Subject: [PATCH] Add ansible config files --- home/ansible.nix | 28 ++++++++++++++++++++++++++++ home/home.nix | 1 + 2 files changed, 29 insertions(+) create mode 100644 home/ansible.nix diff --git a/home/ansible.nix b/home/ansible.nix new file mode 100644 index 0000000..f4df8b6 --- /dev/null +++ b/home/ansible.nix @@ -0,0 +1,28 @@ +{ ... }: + +{ + home.file.".ansible.cfg".text = '' +[defaults] +forks=10 +host_key_checking=False +# Also available: profile_roles +callback_enabled=timer,profile_tasks +stdout_callback=yaml +nocows=1 +cow_selection=tux +collections_path=~/src + +[ssh_connection] +pipelining=True +ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o StrictHostKeyChecking=no +control_path=%(directory)s/%%h-%%r +control_path_dir=/tmp + +[callback_profile_tasks] +sort_order=descending + +[galaxy] +role_skeleton_ignore = ^.git$,^.*/.git_keep$,\..*.swp +role_skeleton = ~/src/ansible_collections/meta_ansible_templates/role +''; +} diff --git a/home/home.nix b/home/home.nix index 62cd5b3..55fc169 100644 --- a/home/home.nix +++ b/home/home.nix @@ -7,6 +7,7 @@ let in { imports = [ ./modules + ./ansible.nix ./bash.nix ./direnv.nix ./git.nix