{"id":16421566,"url":"https://github.com/cdriehuys/ansible-role-security","last_synced_at":"2025-08-30T12:37:21.891Z","repository":{"id":79375910,"uuid":"81594703","full_name":"cdriehuys/ansible-role-security","owner":"cdriehuys","description":"Ansible role for securing a server.","archived":false,"fork":false,"pushed_at":"2017-03-20T19:59:15.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T17:50:03.207Z","etag":null,"topics":["ansible-role","devops","security"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdriehuys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-02-10T18:32:34.000Z","updated_at":"2017-02-10T18:32:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7173a05-c3ff-4036-9a9e-7db79426279d","html_url":"https://github.com/cdriehuys/ansible-role-security","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cdriehuys/ansible-role-security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdriehuys%2Fansible-role-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdriehuys%2Fansible-role-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdriehuys%2Fansible-role-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdriehuys%2Fansible-role-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdriehuys","download_url":"https://codeload.github.com/cdriehuys/ansible-role-security/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdriehuys%2Fansible-role-security/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272852279,"owners_count":25004052,"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-08-30T02:00:09.474Z","response_time":77,"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":["ansible-role","devops","security"],"created_at":"2024-10-11T07:33:47.372Z","updated_at":"2025-08-30T12:37:21.843Z","avatar_url":"https://github.com/cdriehuys.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Security\n=========\n\nAnsible role to perform the \"first 5 minute tasks\" done on every server.\n\nTasks:\n\n- Perform a safe upgrade of all packages\n- Create deployment user\n  - Has no password and can only be accessed through SSH.\n  - User is added to sudoers.\n- Create any required groups\n\nRequirements\n------------\n\nThere are no additional requirements.\n\nRole Variables\n--------------\n\nListed below are all the configuration options for the role along with their defaults.\n\n```YAML\napt_cache_time: 0\n\ndeploy_user: 'deploy'\ndeploy_user_shell: '/bin/bash'\n\n# The SSH keys to assign to the deploy user. This is required as the deployment\n# user has no password, so this is the only way to login.\ndeploy_user_public_keys: []             # Raw SSH keys\ndeploy_user_public_key_files: []        # Include keys using files, eg: ~/.ssh/id_rsa.pub\n\n# These groups will be created\ndeploy_groups: []\n```\n\nExample Playbook\n----------------\n\nThis role should be run as the root user of the remote system.\n\n    - hosts: servers\n      become: yes\n      become_user: root\n      remote_user: root\n      roles:\n         - { role: cdriehuys.ansible-role-security, deploy_user: sysadmin}\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdriehuys%2Fansible-role-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdriehuys%2Fansible-role-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdriehuys%2Fansible-role-security/lists"}