ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/rgordill/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.2 (default, Feb 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins host_list declined parsing /home/rgordill/PoC/argocd/ansible/inventory as it did not pass its verify_file() method script declined parsing /home/rgordill/PoC/argocd/ansible/inventory as it did not pass its verify_file() method auto declined parsing /home/rgordill/PoC/argocd/ansible/inventory as it did not pass its verify_file() method Set default localhost to localhost Parsed /home/rgordill/PoC/argocd/ansible/inventory inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3.9/site-packages/ansible/plugins/callback/default.py Attempting to use 'actionable' callback. Skipping callback 'actionable', as we already have a stdout callback. Attempting to use 'aws_resource_actions' callback. Attempting to use 'cgroup_memory_recap' callback. Attempting to use 'cgroup_perf_recap' callback. Attempting to use 'context_demo' callback. Attempting to use 'counter_enabled' callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Attempting to use 'debug' callback. Skipping callback 'debug', as we already have a stdout callback. Attempting to use 'dense' callback. Skipping callback 'dense', as we already have a stdout callback. Attempting to use 'dense' callback. Skipping callback 'dense', as we already have a stdout callback. Attempting to use 'foreman' callback. Attempting to use 'full_skip' callback. Skipping callback 'full_skip', as we already have a stdout callback. Attempting to use 'grafana_annotations' callback. Attempting to use 'hipchat' callback. Attempting to use 'jabber' callback. Attempting to use 'json' callback. Skipping callback 'json', as we already have a stdout callback. Attempting to use 'junit' callback. Attempting to use 'log_plays' callback. Attempting to use 'logdna' callback. Attempting to use 'logentries' callback. Attempting to use 'logstash' callback. Attempting to use 'mail' callback. Attempting to use 'minimal' callback. Skipping callback 'minimal', as we already have a stdout callback. Attempting to use 'nrdp' callback. Attempting to use 'null' callback. Skipping callback 'null', as we already have a stdout callback. Attempting to use 'oneline' callback. Skipping callback 'oneline', as we already have a stdout callback. Attempting to use 'osx_say' callback. Attempting to use 'profile_roles' callback. Attempting to use 'profile_tasks' callback. Attempting to use 'say' callback. Attempting to use 'selective' callback. Skipping callback 'selective', as we already have a stdout callback. Attempting to use 'skippy' callback. Skipping callback 'skippy', as we already have a stdout callback. Attempting to use 'slack' callback. Attempting to use 'splunk' callback. Attempting to use 'stderr' callback. Skipping callback 'stderr', as we already have a stdout callback. Attempting to use 'sumologic' callback. Attempting to use 'syslog_json' callback. Attempting to use 'timer' callback. Attempting to use 'tree' callback. Attempting to use 'unixy' callback. Skipping callback 'unixy', as we already have a stdout callback. Attempting to use 'yaml' callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: test.yml ******************************************************************************************************************** Positional arguments: test.yml verbosity: 5 connection: smart timeout: 10 become_method: sudo tags: ('all',) inventory: ('/home/rgordill/PoC/argocd/ansible/inventory',) forks: 5 1 plays in test.yml PLAY [localhost] ********************************************************************************************************************** META: ran handlers TASK [nginx : Patch Nginx to support ssl-passthough] ********************************************************************************** task path: /home/rgordill/PoC/argocd/ansible/roles/nginx/tasks/main.yml:4 ESTABLISH LOCAL CONNECTION FOR USER: rgordill EXEC /bin/sh -c 'echo ~rgordill && sleep 0' EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rgordill/.ansible/tmp `"&& mkdir "` echo /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584 `" && echo ansible-tmp-1618225950.4458103-26431-195496111296584="` echo /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584 `" ) && sleep 0' Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/basic.py Using module_utils file ansible_collections Using module_utils file ansible_collections/community/kubernetes/plugins Using module_utils file ansible_collections/community Using module_utils file ansible_collections/community/kubernetes/plugins/module_utils/common Using module_utils file ansible_collections/community/kubernetes Using module_utils file ansible_collections/community/kubernetes/plugins/module_utils Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/compat/__init__.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/pycompat24.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/validation.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/process.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/parsing/__init__.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/text/__init__.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/text/formatters.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/parameters.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/__init__.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/_collections_compat.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/_utils.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/compat/selectors.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/six/__init__.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/text/converters.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/_text.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/file.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/parsing/convert_bool.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/sys_info.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/_json_compat.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/collections.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/compat/_selectors2.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/distro/__init__.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/distro/_distro.py Using module_utils file /usr/lib/python3.9/site-packages/ansible/module_utils/common/dict_transformations.py Using module file /home/rgordill/.ansible/collections/ansible_collections/community/kubernetes/plugins/modules/k8s.py PUT /home/rgordill/.ansible/tmp/ansible-local-26422gegb2wpy/tmp5gdub4m0 TO /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584/AnsiballZ_k8s.py EXEC /bin/sh -c 'chmod u+x /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584/ /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584/AnsiballZ_k8s.py && sleep 0' EXEC /bin/sh -c '/usr/bin/python3 /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584/AnsiballZ_k8s.py && sleep 0' EXEC /bin/sh -c 'rm -f -r /home/rgordill/.ansible/tmp/ansible-tmp-1618225950.4458103-26431-195496111296584/ > /dev/null 2>&1 && sleep 0' ok: [localhost] => { "changed": false, "diff": {}, "invocation": { "module_args": { "api_key": null, "api_version": "apps/v1", "append_hash": false, "apply": false, "ca_cert": null, "client_cert": null, "client_key": null, "context": null, "delete_options": null, "force": false, "host": null, "kind": "deployment", "kubeconfig": null, "merge_type": [ "json" ], "name": "ingress-nginx-controller", "namespace": "kube-system", "password": null, "persist_config": null, "proxy": null, "resource_definition": [ { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "name": "ingress-nginx-controller", "namespace": "kube-system" }, "op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-ssl-passthrough" } ], "src": null, "state": "present", "template": null, "username": null, "validate": null, "validate_certs": null, "wait": false, "wait_condition": null, "wait_sleep": 5, "wait_timeout": 120 } }, "method": "patch", "result": { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "annotations": { "deployment.kubernetes.io/revision": "4", "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"addonmanager.kubernetes.io/mode\":\"Reconcile\",\"app.kubernetes.io/component\":\"controller\",\"app.kubernetes.io/instance\":\"ingress-nginx\",\"app.kubernetes.io/name\":\"ingress-nginx\",\"app.kubernetes.io/part-of\":\"kube-system\"},\"name\":\"ingress-nginx-controller\",\"namespace\":\"kube-system\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"controller\",\"app.kubernetes.io/instance\":\"ingress-nginx\",\"app.kubernetes.io/name\":\"ingress-nginx\"}},\"strategy\":{\"rollingUpdate\":{\"maxSurge\":1,\"maxUnavailable\":1},\"type\":\"RollingUpdate\"},\"template\":{\"metadata\":{\"labels\":{\"addonmanager.kubernetes.io/mode\":\"Reconcile\",\"app.kubernetes.io/component\":\"controller\",\"app.kubernetes.io/instance\":\"ingress-nginx\",\"app.kubernetes.io/name\":\"ingress-nginx\",\"gcp-auth-skip-secret\":\"true\"}},\"spec\":{\"containers\":[{\"args\":[\"/nginx-ingress-controller\",\"--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf\",\"--report-node-internal-ip-address\",\"--tcp-services-configmap=$(POD_NAMESPACE)/tcp-services\",\"--udp-services-configmap=$(POD_NAMESPACE)/udp-services\",\"--validating-webhook=:8443\",\"--validating-webhook-certificate=/usr/local/certificates/cert\",\"--validating-webhook-key=/usr/local/certificates/key\"],\"env\":[{\"name\":\"POD_NAME\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.name\"}}},{\"name\":\"POD_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}}],\"image\":\"us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2@sha256:46ba23c3fbaafd9e5bd01ea85b2f921d9f2217be082580edc22e6c704a83f02f\",\"imagePullPolicy\":\"IfNotPresent\",\"lifecycle\":{\"preStop\":{\"exec\":{\"command\":[\"/wait-shutdown\"]}}},\"livenessProbe\":{\"failureThreshold\":3,\"httpGet\":{\"path\":\"/healthz\",\"port\":10254,\"scheme\":\"HTTP\"},\"initialDelaySeconds\":10,\"periodSeconds\":10,\"successThreshold\":1,\"timeoutSeconds\":1},\"name\":\"controller\",\"ports\":[{\"containerPort\":80,\"hostPort\":80,\"name\":\"http\",\"protocol\":\"TCP\"},{\"containerPort\":443,\"hostPort\":443,\"name\":\"https\",\"protocol\":\"TCP\"},{\"containerPort\":8443,\"name\":\"webhook\",\"protocol\":\"TCP\"}],\"readinessProbe\":{\"failureThreshold\":3,\"httpGet\":{\"path\":\"/healthz\",\"port\":10254,\"scheme\":\"HTTP\"},\"initialDelaySeconds\":10,\"successThreshold\":1,\"timeoutSeconds\":1},\"resources\":{\"requests\":{\"cpu\":\"100m\",\"memory\":\"90Mi\"}},\"securityContext\":{\"allowPrivilegeEscalation\":true,\"capabilities\":{\"add\":[\"NET_BIND_SERVICE\"],\"drop\":[\"ALL\"]},\"runAsUser\":101},\"volumeMounts\":[{\"mountPath\":\"/usr/local/certificates/\",\"name\":\"webhook-cert\",\"readOnly\":true}]}],\"serviceAccountName\":\"ingress-nginx\",\"volumes\":[{\"name\":\"webhook-cert\",\"secret\":{\"secretName\":\"ingress-nginx-admission\"}}]}}}}\n" }, "creationTimestamp": "2021-04-08T06:01:31Z", "generation": 4, "labels": { "addonmanager.kubernetes.io/mode": "Reconcile", "app.kubernetes.io/component": "controller", "app.kubernetes.io/instance": "ingress-nginx", "app.kubernetes.io/name": "ingress-nginx", "app.kubernetes.io/part-of": "kube-system" }, "managedFields": [ { "apiVersion": "apps/v1", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:annotations": { ".": {}, "f:kubectl.kubernetes.io/last-applied-configuration": {} }, "f:labels": { ".": {}, "f:addonmanager.kubernetes.io/mode": {}, "f:app.kubernetes.io/component": {}, "f:app.kubernetes.io/instance": {}, "f:app.kubernetes.io/name": {}, "f:app.kubernetes.io/part-of": {} } }, "f:spec": { "f:progressDeadlineSeconds": {}, "f:replicas": {}, "f:revisionHistoryLimit": {}, "f:selector": {}, "f:strategy": { "f:rollingUpdate": { ".": {}, "f:maxSurge": {}, "f:maxUnavailable": {} }, "f:type": {} }, "f:template": { "f:metadata": { "f:labels": { ".": {}, "f:addonmanager.kubernetes.io/mode": {}, "f:app.kubernetes.io/component": {}, "f:app.kubernetes.io/instance": {}, "f:app.kubernetes.io/name": {}, "f:gcp-auth-skip-secret": {} } }, "f:spec": { "f:containers": { "k:{\"name\":\"controller\"}": { ".": {}, "f:args": {}, "f:env": { ".": {}, "k:{\"name\":\"POD_NAME\"}": { ".": {}, "f:name": {}, "f:valueFrom": { ".": {}, "f:fieldRef": { ".": {}, "f:apiVersion": {}, "f:fieldPath": {} } } }, "k:{\"name\":\"POD_NAMESPACE\"}": { ".": {}, "f:name": {}, "f:valueFrom": { ".": {}, "f:fieldRef": { ".": {}, "f:apiVersion": {}, "f:fieldPath": {} } } } }, "f:image": {}, "f:imagePullPolicy": {}, "f:lifecycle": { ".": {}, "f:preStop": { ".": {}, "f:exec": { ".": {}, "f:command": {} } } }, "f:livenessProbe": { ".": {}, "f:failureThreshold": {}, "f:httpGet": { ".": {}, "f:path": {}, "f:port": {}, "f:scheme": {} }, "f:initialDelaySeconds": {}, "f:periodSeconds": {}, "f:successThreshold": {}, "f:timeoutSeconds": {} }, "f:name": {}, "f:ports": { ".": {}, "k:{\"containerPort\":443,\"protocol\":\"TCP\"}": { ".": {}, "f:containerPort": {}, "f:hostPort": {}, "f:name": {}, "f:protocol": {} }, "k:{\"containerPort\":80,\"protocol\":\"TCP\"}": { ".": {}, "f:containerPort": {}, "f:hostPort": {}, "f:name": {}, "f:protocol": {} }, "k:{\"containerPort\":8443,\"protocol\":\"TCP\"}": { ".": {}, "f:containerPort": {}, "f:name": {}, "f:protocol": {} } }, "f:readinessProbe": { ".": {}, "f:failureThreshold": {}, "f:httpGet": { ".": {}, "f:path": {}, "f:port": {}, "f:scheme": {} }, "f:initialDelaySeconds": {}, "f:periodSeconds": {}, "f:successThreshold": {}, "f:timeoutSeconds": {} }, "f:resources": { ".": {}, "f:requests": { ".": {}, "f:cpu": {}, "f:memory": {} } }, "f:securityContext": { ".": {}, "f:allowPrivilegeEscalation": {}, "f:capabilities": { ".": {}, "f:add": {}, "f:drop": {} }, "f:runAsUser": {} }, "f:terminationMessagePath": {}, "f:terminationMessagePolicy": {}, "f:volumeMounts": { ".": {}, "k:{\"mountPath\":\"/usr/local/certificates/\"}": { ".": {}, "f:mountPath": {}, "f:name": {}, "f:readOnly": {} } } } }, "f:dnsPolicy": {}, "f:restartPolicy": {}, "f:schedulerName": {}, "f:securityContext": {}, "f:serviceAccount": {}, "f:serviceAccountName": {}, "f:terminationGracePeriodSeconds": {}, "f:volumes": { ".": {}, "k:{\"name\":\"webhook-cert\"}": { ".": {}, "f:name": {}, "f:secret": { ".": {}, "f:defaultMode": {}, "f:secretName": {} } } } } } } }, "manager": "kubectl-client-side-apply", "operation": "Update", "time": "2021-04-12T07:13:46Z" }, { "apiVersion": "apps/v1", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:annotations": { "f:deployment.kubernetes.io/revision": {} } }, "f:status": { "f:availableReplicas": {}, "f:conditions": { ".": {}, "k:{\"type\":\"Available\"}": { ".": {}, "f:lastTransitionTime": {}, "f:lastUpdateTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {} }, "k:{\"type\":\"Progressing\"}": { ".": {}, "f:lastTransitionTime": {}, "f:lastUpdateTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {} } }, "f:observedGeneration": {}, "f:readyReplicas": {}, "f:replicas": {}, "f:updatedReplicas": {} } }, "manager": "kube-controller-manager", "operation": "Update", "time": "2021-04-12T07:14:42Z" } ], "name": "ingress-nginx-controller", "namespace": "kube-system", "resourceVersion": "110115", "uid": "bb5604f7-e1e6-4603-85da-5a792db432e4" }, "spec": { "progressDeadlineSeconds": 600, "replicas": 1, "revisionHistoryLimit": 10, "selector": { "matchLabels": { "app.kubernetes.io/component": "controller", "app.kubernetes.io/instance": "ingress-nginx", "app.kubernetes.io/name": "ingress-nginx" } }, "strategy": { "rollingUpdate": { "maxSurge": 1, "maxUnavailable": 1 }, "type": "RollingUpdate" }, "template": { "metadata": { "creationTimestamp": null, "labels": { "addonmanager.kubernetes.io/mode": "Reconcile", "app.kubernetes.io/component": "controller", "app.kubernetes.io/instance": "ingress-nginx", "app.kubernetes.io/name": "ingress-nginx", "gcp-auth-skip-secret": "true" } }, "spec": { "containers": [ { "args": [ "/nginx-ingress-controller", "--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf", "--report-node-internal-ip-address", "--tcp-services-configmap=$(POD_NAMESPACE)/tcp-services", "--udp-services-configmap=$(POD_NAMESPACE)/udp-services", "--validating-webhook=:8443", "--validating-webhook-certificate=/usr/local/certificates/cert", "--validating-webhook-key=/usr/local/certificates/key" ], "env": [ { "name": "POD_NAME", "valueFrom": { "fieldRef": { "apiVersion": "v1", "fieldPath": "metadata.name" } } }, { "name": "POD_NAMESPACE", "valueFrom": { "fieldRef": { "apiVersion": "v1", "fieldPath": "metadata.namespace" } } } ], "image": "us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2@sha256:46ba23c3fbaafd9e5bd01ea85b2f921d9f2217be082580edc22e6c704a83f02f", "imagePullPolicy": "IfNotPresent", "lifecycle": { "preStop": { "exec": { "command": [ "/wait-shutdown" ] } } }, "livenessProbe": { "failureThreshold": 3, "httpGet": { "path": "/healthz", "port": 10254, "scheme": "HTTP" }, "initialDelaySeconds": 10, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 1 }, "name": "controller", "ports": [ { "containerPort": 80, "hostPort": 80, "name": "http", "protocol": "TCP" }, { "containerPort": 443, "hostPort": 443, "name": "https", "protocol": "TCP" }, { "containerPort": 8443, "name": "webhook", "protocol": "TCP" } ], "readinessProbe": { "failureThreshold": 3, "httpGet": { "path": "/healthz", "port": 10254, "scheme": "HTTP" }, "initialDelaySeconds": 10, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 1 }, "resources": { "requests": { "cpu": "100m", "memory": "90Mi" } }, "securityContext": { "allowPrivilegeEscalation": true, "capabilities": { "add": [ "NET_BIND_SERVICE" ], "drop": [ "ALL" ] }, "runAsUser": 101 }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/usr/local/certificates/", "name": "webhook-cert", "readOnly": true } ] } ], "dnsPolicy": "ClusterFirst", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "serviceAccount": "ingress-nginx", "serviceAccountName": "ingress-nginx", "terminationGracePeriodSeconds": 30, "volumes": [ { "name": "webhook-cert", "secret": { "defaultMode": 420, "secretName": "ingress-nginx-admission" } } ] } } }, "status": { "availableReplicas": 1, "conditions": [ { "lastTransitionTime": "2021-04-08T06:01:47Z", "lastUpdateTime": "2021-04-08T06:01:47Z", "message": "Deployment has minimum availability.", "reason": "MinimumReplicasAvailable", "status": "True", "type": "Available" }, { "lastTransitionTime": "2021-04-08T06:01:47Z", "lastUpdateTime": "2021-04-12T07:14:42Z", "message": "ReplicaSet \"ingress-nginx-controller-65cf89dc4f\" has successfully progressed.", "reason": "NewReplicaSetAvailable", "status": "True", "type": "Progressing" } ], "observedGeneration": 4, "readyReplicas": 1, "replicas": 1, "updatedReplicas": 1 } } } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************** localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0