Skip to content

Instantly share code, notes, and snippets.

@chr00ted
Last active February 6, 2024 20:42
Show Gist options
  • Save chr00ted/f5968a2e32ed1df354fce3de54a55f1d to your computer and use it in GitHub Desktop.
Save chr00ted/f5968a2e32ed1df354fce3de54a55f1d to your computer and use it in GitHub Desktop.
AWX Instance Group custom pod spec for NFS mounts
apiVersion: v1
kind: Pod
metadata:
namespace: awx
spec:
serviceAccountName: default
automountServiceAccountToken: false
containers:
- image: quay.io/ansible/awx-ee:latest
name: worker
args:
- ansible-runner
- worker
- '--private-data-dir=/runner'
volumeMounts:
- name: nfststmnt
mountPath: /<where-you-want-to-mount>
volumes:
- name: nfststmnt
nfs:
server: <nfs-server-ip>
path: /<exported-folder-name>
@chr00ted
Copy link
Author

chr00ted commented Feb 6, 2024

If you have a need for using an NFS mount for saving data from AWX templates/playbooks

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment