{"id":31757112,"url":"https://github.com/deadswitch404/ghost-automation","last_synced_at":"2025-10-25T21:12:34.582Z","repository":{"id":315189758,"uuid":"1057093972","full_name":"DeadSwitch404/ghost-automation","owner":"DeadSwitch404","description":"Ansible project for the orchestration of DeadSwitch Debian machines.","archived":false,"fork":false,"pushed_at":"2025-09-26T07:32:53.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-26T09:27:37.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeadSwitch404.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T09:11:42.000Z","updated_at":"2025-09-26T07:32:56.000Z","dependencies_parsed_at":"2025-09-17T08:27:13.087Z","dependency_job_id":"143be65f-ebcc-47ef-ae55-6c57fc2238a1","html_url":"https://github.com/DeadSwitch404/ghost-automation","commit_stats":null,"previous_names":["deadswitch404/ghost-automation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeadSwitch404/ghost-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeadSwitch404%2Fghost-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeadSwitch404%2Fghost-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeadSwitch404%2Fghost-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeadSwitch404%2Fghost-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeadSwitch404","download_url":"https://codeload.github.com/DeadSwitch404/ghost-automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeadSwitch404%2Fghost-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001960,"owners_count":26083244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-09T19:47:30.858Z","updated_at":"2025-10-09T19:47:34.041Z","avatar_url":"https://github.com/DeadSwitch404.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: Ghost Automation\n#+AUTHOR: DeadSwitch | The Silent Architect\n#+OPTIONS: toc:t num:t \\n:nil\n\n* Overview\nGhost Automation is the DeadSwitch infrastructure automation framework.\nIt's a self-contained Ghost Automation project.\nIt provides hardened, reproducible machine configurations using Ansible.\nEvery role is designed for security, minimalism, and validation.\n\nThe goal: any bare machine can be turned into the part of the\nGhost Infrastructure with one playbook.\n\n* Structure\n#+begin_example\nplaybooks/       → Entry point playbooks\nroles/           → Modular roles (ds-*)\nscripts/         → Scripts handling automation steps\nansible.cfg      → Ansible configuration\n#+end_example\n\n* Roles\n| Role          | Purpose                                                              |\n|---------------+----------------------------------------------------------------------|\n| =ds-users=    | Create users, groups, and deploy SSH keys. Set the initial password. |\n| =ds-sudo=     | Manage sudoers safely with validation.                               |\n| =ds-ssh=      | Configure SSH access for users.                                      |\n| =ds-firewall= | Manage firewall rules (default deny, explicit allow).                |\n\nEach role ships with its own =README.org= describing variables, structure, and usage.\n\n* Playbooks\n- =play-configure-machine.yml= :: Base playbook to provision a host with all DeadSwitch roles.\n\nExample usage:\n#+begin_src shell\nansible-playbook -i inventories/hosts.yml playbooks/play-configure-machine.yml --ask-vault-pass\n#+end_src\n\nThis playbook runs the baseline:\n#+begin_example\n- ds-users\n- ds-sudo\n- ds-ssh\n- ds-firewall\n#+end_example\n\n* Inventories\nInventories must be organized as:\n- =hosts.yml=    → main inventory of target machines\n- =group_vars/=  → group-level variables\n- =host_vars/=   → host-specific variables\n\nExample =hosts.yml=:\n#+begin_src yaml\nghost_infrastructure:\n  ansible_host: 192.168.122.100\n  ansible_user: switch\n  ansible_ssh_private_key_file: /usr/share/keys/ghost_automation\n#+end_src\n\n* Development\n- Use Python virtual environment (=.venv=) for isolation.\n- Run =ansible-lint= and =yamllint= before commits.\n- Future: Molecule scenarios for each role (test each role in isolation).\n\n* Safety\n- Sudo configurations validated with =visudo=.\n- Groups are created before being assigned to users.\n- SSH hardening applied cautiously to prevent lockouts.\n- Firewall is deny-first, require explicit allow.\n- Principle: *secure by default, flexible by variable*.\n\n* License\nMIT.\n\n=[Fear the silence. Fear the switch.]=\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadswitch404%2Fghost-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadswitch404%2Fghost-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadswitch404%2Fghost-automation/lists"}