{"id":19475561,"url":"https://github.com/chihchun/ansible-ubuntu-pc","last_synced_at":"2025-10-16T15:04:14.311Z","repository":{"id":136301713,"uuid":"247965919","full_name":"chihchun/ansible-ubuntu-pc","owner":"chihchun","description":"Ansible scripts to setup Ubuntu desktop","archived":false,"fork":false,"pushed_at":"2025-01-21T05:26:21.000Z","size":90,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T22:41:33.351Z","etag":null,"topics":["ansible","desktop","playbook","ubuntu-developer"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/chihchun.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2020-03-17T12:38:13.000Z","updated_at":"2025-01-21T05:26:24.000Z","dependencies_parsed_at":"2025-01-21T06:31:11.298Z","dependency_job_id":null,"html_url":"https://github.com/chihchun/ansible-ubuntu-pc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihchun%2Fansible-ubuntu-pc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihchun%2Fansible-ubuntu-pc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihchun%2Fansible-ubuntu-pc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihchun%2Fansible-ubuntu-pc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chihchun","download_url":"https://codeload.github.com/chihchun/ansible-ubuntu-pc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250834068,"owners_count":21494903,"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","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","desktop","playbook","ubuntu-developer"],"created_at":"2024-11-10T19:33:36.353Z","updated_at":"2025-10-16T15:04:09.260Z","avatar_url":"https://github.com/chihchun.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Introduction\n\nThis Ansible playbook serves as a toolkit for Ubuntu developers, enabling quick setup of a workstation and deployment of development tools for hardware enablement tasks.\n\n## Useful task/playbook for a Ubuntu developer\n\n- Quickly setup a machine with utilus for Desktop (including Google Chrome, Dropbox)\n    \u003e ./deploy-playbook.sh xps-13-7390.local desktop.yaml\n\n- Instgall Google Chrome\n    \u003e ./run-task.sh u-xps-13-7390.local roles/desktop-focal/tasks/google-chrome.yaml \n\n- Instgall Dropbox\n    \u003e ./run-task.sh u-xps-13-7390.local roles/desktop-focal/tasks/dropbox.yaml \n\n- Setup checkbox for PC sanity tests, which is a test suite to verify if the system are well enabled.\n    \u003e ./deploy-playbook.sh xps-13-7390.local enablement.yaml\n\n- Enable Debug Symbol Packages on Ubutnu, for analyzing stack traces or debugging.\n    \u003e ./run-task.sh u-xps-13-7390.local enablement-focal/tasks/enable-ddebs.yaml\n\n- Enable proposed pocket to test the latest availble software for Ubutnu.\n    \u003e ./run-task.sh u-xps-13-7390.local enablement-focal/tasks/enable-proposed.yaml\n\n- Disable screen lock/dim.\n    \u003e ./run-task.sh u-xps-13-7390.local enablement-focal/tasks/disable-screenlock.yaml\n\n- Enable Automatic Login\n    \u003e ./run-task.sh u-xps-13-7390.local enablement-focal/tasks/enable-auto-login.yaml\n\n- Disable background apt update.\n    \u003e ./run-task.sh u-xps-13-7390.local enablement-focal/tasks/apt-periodic.yaml\n\n- Register HINFO/workstation on mDNS.\n    \u003e ./run-task.sh u-xps-13-7390.local enablement-focal/tasks/avahi.yaml\n\n - Run a Checkbox test job, and fetch the report back to /tmp\n    \u003e ./run-checkbox.sh u-xps-13-7390.local com.canonical.certification::smoke\n\n    \u003e ./run-checkbox.sh u-xps-13-7390.local com.canonical.certification::graphics/gl_support\n\n## How to play\n- Install ansiable on your workstation. \n    \u003e apt install ansible\n- Deploy Ubuntu on a fresh-installed machine. The mDNS/avahi is enabled by default on Ubuntu, please remember the host name you set during the installation.\n- Ensure if the machine is avaialbile on the mDNS, by checking it's IP of  the hostname. (the hostname in this sample is xps-13-7390)\n    \u003e avahi-resolve -n -4 -v xps-13-7390.local\n- Copy the ssh key to the target machine with ssh-copy-id\n    \u003e ssh-copy-id u@xps-13-7390.local:\n- Add the hostnaem in the \"hosts\" file, Eg.\n\n        [desktop]\n        g7-7790.local ansible_ssh_user=chihchun\n        xps-13-7390.local ansible_ssh_user=u ansible_sudo_pass=u\n\n- Deploy the playbook on the target machine\n    \u003e ansible-playbook -v --ask-become-pass --extra-vars=hosts=xps-13-7390.local desktop.yaml\n\n    or using a helper script.\n    \u003e ./deploy-playbook.sh xps-13-7390.local desktop.yaml\n\n- Run a task on the target machine\n    This command will run the \"hello\" tasks on the machine.\n    \u003e ansible-playbook -vv --extra-vars=hosts=u-xps-13-7390.local -e task=enablement-focal/tasks/hello.yaml task-runner.yaml\n\n    or using a helper script.\n    \u003e ./run-task.sh xps-13-7390.local enablement-focal/tasks/hello.yaml\n\n## Known issue when playing with focal (Ubuntu 20.04)\n- The ansible 2.5.1+dfsg-1ubuntu0.1 in bionic does not work well with python3, it requires a patch.\n\n        --- /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt_repository.py\t2018-04-19 08:01:49.000000000 +0800\n        +++ /tmp/apt_repository.py\t2020-03-18 00:05:12.980457762 +0800\n        @@ -188,7 +188,7 @@\n                    for n, valid, enabled, source, comment in sources:\n                        if valid:\n                            yield file, n, enabled, source, comment\n        -        raise StopIteration\n        +        # raise StopIteration\n        \n            def _expand_path(self, filename):\n                if '/' in filename:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchihchun%2Fansible-ubuntu-pc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchihchun%2Fansible-ubuntu-pc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchihchun%2Fansible-ubuntu-pc/lists"}