[ { "name": "packages", "become": true, "ansible.builtin.apt": { "update_cache": true, "pkg": [ "git", "make", "nodejs" ] } }, { "name": "user and directory", "become": true, "ansible.builtin.user": { "name": "{{var_espe_frontend_zackeneule_user}}", "create_home": true, "home": "{{var_espe_frontend_zackeneule_directory}}" } }, { "name": "program | fetch", "become": true, "become_user": "{{var_espe_frontend_zackeneule_user}}", "ansible.builtin.git": { "repo": "{{var_espe_frontend_zackeneule_git_repository_url}}", "version": "{{var_espe_frontend_zackeneule_git_reference}}", "dest": "/tmp/zackeneule-repo" } }, { "name": "program | build", "become": true, "become_user": "{{var_espe_frontend_zackeneule_user}}", "ansible.builtin.command": { "chdir": "/tmp/zackeneule-repo", "cmd": "tools/build" } }, { "name": "program | deploy", "become": true, "become_user": "{{var_espe_frontend_zackeneule_user}}", "ansible.builtin.shell": { "chdir": "/tmp/zackeneule-repo", "cmd": "tools/deploy localhost --target-directory={{var_espe_frontend_zackeneule_directory}}" } }, { "name": "conf", "become": true, "become_user": "{{var_espe_frontend_zackeneule_user}}", "ansible.builtin.template": { "src": "conf.json.j2", "dest": "{{var_espe_frontend_zackeneule_directory}}/conf.json", "owner": "{{var_espe_frontend_zackeneule_user}}" } } ]