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