diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..3419900 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,12 @@ +[defaults] +inventory = ./inv/ +log_path = ~/.ansible/log_ansible.log +privat_key_file = ~/.ssh/ansible +retry_files_enabled = true +retry_files_save_path = ~/.ansible/retry-files +force_handlers = true +vault_identity_list = ~/.ansible/.vault-pass +#Gather CONFIG +gathering = smart +fact_caching = yaml +fact_caching_connection = ~/.ansible/fact_caching diff --git a/inv/hosts b/inv/hosts new file mode 100644 index 0000000..c9a4936 --- /dev/null +++ b/inv/hosts @@ -0,0 +1,9 @@ +FlaskServer: + hosts: + ras-dan-01: + vars: + ansible_python_interpreter: "/usr/bin/python3" + ansible_ssh_common_args: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' + ansible_user: jonnybravo + ansible_become: true + diff --git a/start.yml b/start.yml index 141ae94..854fa49 100644 --- a/start.yml +++ b/start.yml @@ -1,8 +1,8 @@ - name: Start PythonFlask gather_facts: True become: False - hosts: localhost - connection: local + hosts: FlaskServer +# connection: local vars: project_folder: "/home/jonnybravo/.docker/pythonflask-ausgaben" docker_project_name: "pythonflaskausgabe"