Browse Source

:fire: remove magnolia project

Jeremy Zheng 2 tuần trước cách đây
mục cha
commit
3ae53da226

+ 0 - 1
magnolia/.gitignore

@@ -1 +0,0 @@
-/clients/

+ 0 - 2
magnolia/docker/.gitignore

@@ -1,2 +0,0 @@
-*.tar
-*.md5

+ 0 - 71
magnolia/docker/Dockerfile

@@ -1,71 +0,0 @@
-FROM ubuntu:latest
-LABEL maintainer="Kassapa"
-
-ENV DEBIAN_FRONTEND="noninteractive"
-
-RUN apt update
-RUN apt -y upgrade
-RUN apt install -y lsb-release apt-utils \
-    debian-keyring debian-archive-keyring apt-transport-https software-properties-common curl wget gnupg
-RUN add-apt-repository -y ppa:ondrej/php
-# https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
-RUN add-apt-repository -y ppa:deadsnakes/ppa
-# https://launchpad.net/~ondrej/+archive/ubuntu/php
-RUN apt install -y zip unzip vim locales locales-all rsync openssh-client telnet sshpass pwgen screen \
-    tzdata tree asciidoc doxygen imagemagick ffmpeg fonts-dejavu-extra texlive-full \
-    git cmake build-essential ninja-build \
-    redis-tools postgresql-client mariadb-client \
-    php8.1-fpm php8.1-mbstring php8.1-xml php8.1-bcmath php8.1-curl php8.1-zip \
-    php8.1-mysql php8.1-pgsql php8.1-sqlite3 php8.1-redis php8.1-mongodb php8.1-amqp php8.1-zmq \
-    php8.1-imagick php8.1-gd php8.1-intl php8.1-soap \
-    php8.4-fpm php8.4-mbstring php8.4-xml php8.4-bcmath php8.4-curl php8.4-zip \
-    php8.4-mysql php8.4-pgsql php8.4-sqlite3 php8.4-redis php8.4-mongodb php8.4-amqp php8.4-zmq \
-    php8.4-imagick php8.4-gd php8.4-intl php8.4-soap \
-    python3.13-venv python3.13-dev
-RUN apt clean
-RUN apt autoremove
-
-RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
-RUN locale-gen
-RUN update-alternatives --set editor /usr/bin/vim.basic
-RUN python3.13 -m ensurepip --upgrade
-
-# RUN useradd -s /bin/bash -m deploy
-# RUN passwd -l deploy
-# RUN echo 'deploy ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/101-deploy
-# USER deploy
-
-RUN mkdir $HOME/local $HOME/tmp $HOME/downloads
-
-# https://github.com/sdkman/sdkman-cli
-# https://docs.gradle.org/current/userguide/compatibility.html
-ENV JDK_VERSION="21.0.2-open"
-RUN curl -s "https://get.sdkman.io" | bash
-RUN sed -i -e 's/sdkman_auto_answer=false/sdkman_auto_answer=true/g' $HOME/.sdkman/etc/config
-RUN bash -c ". $HOME/.sdkman/bin/sdkman-init.sh \
-    && sdk install java ${JDK_VERSION} \
-    && sdk install maven \
-    && sdk install gradle \
-    && sdk install kotlin"
-
-# https://github.com/nvm-sh/nvm
-ENV NVM_VERSION="v0.40.3"
-RUN git clone -b ${NVM_VERSION} https://github.com/nvm-sh/nvm.git $HOME/.nvm
-RUN echo 'export NVM_DIR="$HOME/.nvm"' >> $HOME/.bashrc 
-RUN echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $HOME/.bashrc 
-RUN echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> $HOME/.bashrc
-RUN bash -c ". $HOME/.nvm/nvm.sh \
-    && nvm install --lts \
-    && npm install -g yarn"
-
-# https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos
-RUN wget -q -O $HOME/downloads/composer https://getcomposer.org/installer
-RUN cd $HOME/downloads && php composer && mv composer.phar /usr/local/bin/composer
-
-RUN echo "$(date -u +%4Y%m%d%H%M%S)" | tee /VERSION
-
-VOLUME /srv
-WORKDIR /srv
-
-CMD ["/bin/bash", "-l"]
-

+ 0 - 25
magnolia/docker/README.md

@@ -1,25 +0,0 @@
-# Usage
-
-## Setup
-
-```bash
-# archlinux
-sudo pacman -S buildkit docker-buildx
-# ubuntu
-sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
-sudo gpasswd -a xxx docker
-
-docker image load -i xxx.tar
-docker image ls --tree
-
-```
-
-## Documents
-
-### Laravel-PHP Compatibility
-
-| Laravel                                                     | PHP |
-| ----------------------------------------------------------- | --- |
-| [8](https://laravel.com/docs/10.x/releases#support-policy)  | 8.1 |
-| [12](https://laravel.com/docs/12.x/releases#support-policy) | 8.4 |

+ 0 - 16
magnolia/docker/build.sh

@@ -1,16 +0,0 @@
-#!/bin/bash
-
-set -e
-
-export VERSION=$(date "+%4Y%m%d%H%M%S")
-export CODE="magnolia"
-export TAR="$CODE-$(uname -m)-$(date +"%Y%m%d%H%M%S")"
-
-docker pull ubuntu:latest
-DOCKER_BUILDKIT=1 docker build -t $CODE .
-docker save -o $TAR.tar $CODE
-md5sum $TAR.tar >$TAR.md5
-
-echo "done($TAR.tar)."
-
-exit 0

+ 0 - 5
magnolia/docker/start.sh

@@ -1,5 +0,0 @@
-#!/bin/bash
-
-export CODE="magnolia"
-
-docker run --rm -it --hostname=mint --network host -v $PWD:/srv/:z $CODE

+ 0 - 7
magnolia/ec2.yml

@@ -1,7 +0,0 @@
-- name: Testing ssh connections
-  hosts: all,!localhost
-  roles:
-    - os
-    - ubuntu
-    - docker
-    - random-passwords

+ 0 - 3
magnolia/group_vars/all.yml

@@ -1,3 +0,0 @@
-ansible_user: "deploy"
-ansible_python_interpreter: /usr/bin/python3
-ansible_ssh_private_key_file: "{{ inventory_dir }}/.ssh/id_ed25519"

+ 0 - 4
magnolia/open-search.yml

@@ -1,4 +0,0 @@
-- name: OpenSearch node
-  hosts: all
-  roles:
-    - opensearch

+ 0 - 9
magnolia/ping.yml

@@ -1,9 +0,0 @@
-- name: Ping
-  hosts: all
-  tasks:
-    - name: Test ssh connection
-      ansible.builtin.ping:
-
-    - name: Show facts available on the system
-      ansible.builtin.debug:
-        var: ansible_facts

+ 0 - 7
magnolia/reboot.yml

@@ -1,7 +0,0 @@
-- name: Reboot
-  hosts: all,!localhost
-  tasks:
-    - name: Reboot system
-      become: true
-      ansible.builtin.reboot:
-        reboot_timeout: 120

+ 0 - 4
magnolia/redis.yml

@@ -1,4 +0,0 @@
-- name: Redis cluster node
-  hosts: all
-  roles:
-    - redis

+ 0 - 3
magnolia/roles/docker/files/daemon.json

@@ -1,3 +0,0 @@
-{
-  "data-root": "/srv/.docker"
-}

+ 0 - 30
magnolia/roles/docker/tasks/kubernetes.yml

@@ -1,30 +0,0 @@
-# https://minikube.sigs.k8s.io/docs/start/
-- name: Install minikube
-  become: true
-  ansible.builtin.get_url:
-    url: https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64
-    dest: /usr/local/bin/minikube
-    mode: "0755"
-  when: ansible_architecture == "x86_64"
-
-- name: Install minikube
-  become: true
-  ansible.builtin.get_url:
-    url: https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-arm64
-    dest: /usr/local/bin/minikube
-    mode: "0755"
-  when: ansible_architecture == "aarch64"
-
-# https://minikube.sigs.k8s.io/docs/handbook/kubectl/
-- name: Install Kubectl
-  become: true
-  ansible.builtin.file:
-    src: /usr/local/bin/minikube
-    dest: /usr/local/bin/kubectl
-    state: link
-
-# alias kubectl="minikube kubectl --"
-
-- name: Setup Kubectl
-  ansible.builtin.shell:
-    cmd: kubectl help

+ 0 - 78
magnolia/roles/docker/tasks/main.yml

@@ -1,78 +0,0 @@
-# https://docs.docker.com/engine/install/ubuntu/
-
-- name: Install dependency packages
-  become: true
-  ansible.builtin.apt:
-    pkg:
-      - ca-certificates
-      - curl
-
-- name: Create apt keys folder
-  become: true
-  ansible.builtin.file:
-    path: /etc/apt/keyrings
-    state: directory
-    mode: "0755"
-
-- name: Download docker asc
-  become: true
-  ansible.builtin.get_url:
-    url: https://download.docker.com/linux/ubuntu/gpg
-    dest: /etc/apt/keyrings/docker.asc
-    mode: "0644"
-
-- name: Upload docker.list
-  become: true
-  ansible.builtin.template:
-    src: docker.list.j2
-    dest: /etc/apt/sources.list.d/docker.list
-    mode: "0644"
-
-- name: Update apt cache
-  become: true
-  ansible.builtin.apt:
-    update_cache: true
-    # cache_valid_time: 3600
-
-- name: Install docker packages
-  become: true
-  ansible.builtin.apt:
-    pkg:
-      - docker-ce
-      - docker-ce-cli
-      - containerd.io
-      - docker-buildx-plugin
-      - docker-compose-plugin
-
-- name: Add user to docker group
-  become: true
-  ansible.builtin.user:
-    name: "{{ ansible_user }}"
-    groups:
-      - docker
-    append: true
-
-- name: Change the default Docker storage location
-  become: true
-  ansible.builtin.copy:
-    src: daemon.json
-    dest: /etc/docker/daemon.json
-    mode: "0644"
-
-# https://kubernetes.io/docs/setup/production-environment/container-runtimes/#prerequisite-ipv4-forwarding-optional
-- name: Enable IPv4 packet forwarding
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/sysctl.d/101-k8s.conf
-    line: "net.ipv4.ip_forward = 1"
-    create: true
-    mode: "0644"
-
-- name: Swap off
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/sysctl.d/101-k8s.conf
-    line: "vm.swappiness = 0"
-
-- name: Setup kubernetes
-  ansible.builtin.import_tasks: kubernetes.yml

+ 0 - 1
magnolia/roles/docker/templates/docker.list.j2

@@ -1 +0,0 @@
-deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable

+ 0 - 67
magnolia/roles/opensearch/tasks/main.yml

@@ -1,67 +0,0 @@
-- name: Unarchive open-search package
-  become: true
-  ansible.builtin.unarchive:
-    src: "https://artifacts.opensearch.org/releases/bundle/opensearch/{{ open_search_version }}/opensearch-{{ open_search_version }}-linux-{{ open_search_arch }}.tar.gz"
-    dest: /opt
-    remote_src: true
-    owner: www-data
-    group: www-data
-  args:
-    creates: "/opt/opensearch-{{ open_search_version }}"
-
-- name: Set listening
-  become: true
-  ansible.builtin.lineinfile:
-    path: /opt/opensearch-{{ open_search_version }}/config/opensearch.yml
-    line: "network.host: 0.0.0.0"
-    backup: true
-
-- name: Set single node
-  become: true
-  ansible.builtin.lineinfile:
-    path: /opt/opensearch-{{ open_search_version }}/config/opensearch.yml
-    line: "discovery.type: single-node"
-    backup: true
-
-- name: Disable security plugin
-  become: true
-  ansible.builtin.lineinfile:
-    path: /opt/opensearch-{{ open_search_version }}/config/opensearch.yml
-    line: "plugins.security.disabled: true"
-    backup: true
-
-- name: Create data path
-  become: true
-  ansible.builtin.file:
-    path: /srv/.search
-    mode: "0700"
-    owner: www-data
-    group: www-data
-    state: directory
-
-- name: Setup data path
-  become: true
-  ansible.builtin.lineinfile:
-    path: /opt/opensearch-{{ open_search_version }}/config/opensearch.yml
-    line: "path.data: /srv/.search"
-    backup: true
-
-- name: Upload OpenSearch systemd service
-  become: true
-  ansible.builtin.template:
-    src: server.service.j2
-    dest: "/usr/lib/systemd/system/open-search.service"
-    mode: "0644"
-
-- name: Force systemd to reread configs
-  become: true
-  ansible.builtin.systemd:
-    daemon_reload: true
-
-- name: Enable OpenSearch service
-  become: true
-  ansible.builtin.systemd:
-    name: "open-search"
-    enabled: true
-    masked: false
-    state: "restarted"

+ 0 - 17
magnolia/roles/opensearch/templates/server.service.j2

@@ -1,17 +0,0 @@
-[Unit]
-Description=OpenSearch is an open-source, enterprise-grade search and observability suite that brings order to unstructured data at scale
-After=network.target
-
-[Service]
-Type=notify
-WorkingDirectory=/opt/opensearch-{{ open_search_version }}
-ExecStart=/opt/opensearch-{{ open_search_version }}/bin/opensearch
-TimeoutStartSec=180
-TimeoutStopSec=120
-Restart=always
-User=www-data
-Group=www-data
-Environment="OPENSEARCH_JAVA_HOME=/opt/opensearch-{{ open_search_version }}/jdk"
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 19
magnolia/roles/os/tasks/init.yml

@@ -1,19 +0,0 @@
-- name: Create downloads folder
-  ansible.builtin.file:
-    path: "{{ ansible_env.HOME }}/downloads/"
-    state: directory
-
-- name: Create backup folder
-  ansible.builtin.file:
-    path: "{{ ansible_env.HOME }}/backups/"
-    state: directory
-
-- name: Create local folder
-  ansible.builtin.file:
-    path: "{{ ansible_env.HOME }}/local/"
-    state: directory
-
-- name: Create tmp folder
-  ansible.builtin.file:
-    path: "{{ ansible_env.HOME }}/tmp/"
-    state: directory

+ 0 - 47
magnolia/roles/os/tasks/main.yml

@@ -1,47 +0,0 @@
-- include_tasks: init.yml
-- include_tasks: sshd.yml
-- include_tasks: ulimits.yml
-
-- name: Update system
-  become: true
-  ansible.builtin.apt:
-    update_cache: true
-    cache_valid_time: 3600
-  when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Kylin'
-
-- name: Update all packages to their latest version
-  become: true
-  ansible.builtin.apt:
-    name: "*"
-    state: latest
-  when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Kylin'
-
-- name: Install dependicy packages
-  become: true
-  ansible.builtin.apt:
-    pkg:
-      - pwgen
-      - zsh
-      - git
-      - tmux
-  when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Kylin'
-
-- name: Set timezone
-  become: true
-  ansible.builtin.shell: timedatectl set-timezone UTC
-
-- name: Setup journald storage
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/systemd/journald.conf
-    regexp: "^#Storage="
-    line: Storage=persistent
-
-# https://www.linode.com/docs/quick-answers/linux/how-to-use-journalctl/
-- name: Setup journald storage keep-free
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/systemd/journald.conf
-    state: present
-    regexp: "^#SystemKeepFree="
-    line: SystemKeepFree=6%

+ 0 - 31
magnolia/roles/os/tasks/sshd.yml

@@ -1,31 +0,0 @@
-- name: Disable dns for sshd
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/ssh/sshd_config
-    regexp: "^UseDNS "
-    line: UseDNS no
-    backup: true
-
-- name: Disable GSS api auth for sshd
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/ssh/sshd_config
-    regexp: "^GSSAPIAuthentication "
-    line: GSSAPIAuthentication no
-    backup: true
-
-- name: Disable root ssh login
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/ssh/sshd_config
-    regexp: "^PermitRootLogin no"
-    line: PermitRootLogin no
-    backup: true
-
-- name: Disable ssh login by password
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/ssh/sshd_config
-    regexp: "^PasswordAuthentication no"
-    line: PasswordAuthentication no
-    backup: true

+ 0 - 78
magnolia/roles/os/tasks/ulimits.yml

@@ -1,78 +0,0 @@
-- name: Setup nofile for system
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/systemd/system.conf
-    regexp: "^DefaultLimitNOFILE="
-    line: DefaultLimitNOFILE=2097152
-    backup: true
-
-- name: Setup nproc for system
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/systemd/system.conf
-    regexp: "^DefaultLimitNPROC"
-    line: DefaultLimitNPROC=524288
-    backup: true
-
-- name: Setup nofile for user
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/systemd/user.conf
-    regexp: "^DefaultLimitNOFILE="
-    line: DefaultLimitNOFILE=1048576
-    backup: true
-
-- name: Setup nproc for user
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/systemd/user.conf
-    regexp: "^DefaultLimitNPROC"
-    line: DefaultLimitNPROC=262144
-    backup: true
-
-- name: Set user level open file limits for root
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/security/limits.conf
-    line: root        soft nofile 10240
-    backup: true
-
-- name: Set user level open file limits for {{ ansible_user }}
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/security/limits.conf
-    line: "{{ ansible_user }}        soft nofile 10240"
-    backup: true
-
-# https://docs.oracle.com/en/database/oracle/oracle-database/12.2/ladbi/changing-kernel-parameter-values.html#GUID-FB0CC366-61C9-4AA2-9BE7-233EB6810A31
-- name: Setup file max
-  become: true
-  ansible.builtin.lineinfile:
-    path: "/etc/sysctl.d/100-palm.conf"
-    state: present
-    line: "fs.file-max = 6815744"
-    create: true
-
-- name: Setup file max
-  become: true
-  ansible.builtin.lineinfile:
-    path: "/etc/sysctl.d/100-palm.conf"
-    state: present
-    line: "fs.inotify.max_user_watches = 512000"
-    create: true
-
-- name: Setup vm max map count
-  become: true
-  ansible.builtin.lineinfile:
-    path: "/etc/sysctl.d/100-palm.conf"
-    state: present
-    line: "vm.max_map_count = 262144"
-    create: true
-
-- name: Setup vm over commit memory
-  become: true
-  ansible.builtin.lineinfile:
-    path: "/etc/sysctl.d/100-palm.conf"
-    state: present
-    line: "vm.overcommit_memory = 1"
-    create: true

+ 0 - 8
magnolia/roles/random-passwords/main.yml

@@ -1,8 +0,0 @@
-- name: Reset root password
-  become: true
-  shell: echo "root:$(pwgen 32 1)" | chpasswd
-
-- name: Reset {{ ansible_user }} password
-  become: true
-  shell: echo "{{ ansible_user }}:$(pwgen 32 1)" | chpasswd
-  when: ansible_user != 'root'

+ 0 - 50
magnolia/roles/redis/tasks/main.yml

@@ -1,50 +0,0 @@
-- name: Install dependency packages
-  become: true
-  ansible.builtin.apt:
-    pkg:
-      - redis
-
-- name: Enable redis-server service
-  become: true
-  ansible.builtin.systemd:
-    name: redis-server
-    enabled: true
-    state: "restarted"
-
-- name: Create /var/lib/redis
-  become: true
-  ansible.builtin.file:
-    path: "/var/lib/redis/node-{{ app_redis_port }}"
-    owner: redis
-    group: redis
-    mode: "0750"
-    state: directory
-
-- name: Upload /etc/redis.conf
-  become: true
-  ansible.builtin.template:
-    src: redis.conf.j2
-    dest: "/etc/redis/node-{{ app_redis_port }}.conf"
-    owner: redis
-    group: redis
-    mode: "0640"
-
-- name: Upload systemd redis-server.service
-  become: true
-  ansible.builtin.template:
-    src: server.service.j2
-    dest: "/usr/lib/systemd/system/redis-server-{{ app_redis_port }}.service"
-    mode: "0644"
-
-- name: Force systemd to reread configs
-  become: true
-  ansible.builtin.systemd:
-    daemon_reload: true
-
-- name: Enable redis-cluster-node service
-  become: true
-  ansible.builtin.systemd:
-    name: "redis-server-{{ app_redis_port }}"
-    enabled: true
-    masked: false
-    state: "restarted"

+ 0 - 13
magnolia/roles/redis/templates/redis.conf.j2

@@ -1,13 +0,0 @@
-bind 0.0.0.0
-port {{ app_redis_port }}
-protected-mode no
-dir /var/lib/redis/node-{{ app_redis_port }}
-logfile /var/log/redis/node-{{ app_redis_port }}.log
-pidfile /run/node-{{ app_redis_port }}.pid
-
-cluster-enabled yes
-cluster-config-file /etc/redis/cluster-{{ app_redis_port }}.conf
-cluster-node-timeout 5000
-
-appendonly yes
-appendfsync everysec

+ 0 - 16
magnolia/roles/redis/templates/server.service.j2

@@ -1,16 +0,0 @@
-[Unit]
-Description=Advanced key-value store
-After=network.target
-
-[Service]
-Type=notify
-ExecStart=/usr/bin/redis-server /etc/redis/node-{{ app_redis_port }}.conf --supervised systemd --daemonize no
-PIDFile=/run/redis-node-{{ app_redis_port }}.pid
-TimeoutStartSec=180
-TimeoutStopSec=120
-Restart=always
-User=redis
-Group=redis
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 23
magnolia/roles/ubuntu/tasks/clean.yml

@@ -1,23 +0,0 @@
-- name: Remove useless packages from the cache
-  become: true
-  ansible.builtin.apt:
-    autoclean: true
-
-- name: Cleans the local repository of retrieved package files that can no longer be downloaded.
-  become: true
-  ansible.builtin.apt:
-    clean: true
-
-- name: Remove dependencies that are no longer required
-  become: true
-  ansible.builtin.apt:
-    autoremove: true
-
-- name: Force systemd to reread configs
-  become: true
-  ansible.builtin.systemd:
-    daemon_reload: true
-
-- name: Release journald disk usage
-  become: true
-  ansible.builtin.shell: journalctl --vacuum-time=2d

+ 0 - 31
magnolia/roles/ubuntu/tasks/locales.yml

@@ -1,31 +0,0 @@
-- name: Enable en-US locale
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/locale.gen
-    state: present
-    line: en_US.UTF-8 UTF-8
-    backup: true
-
-- name: Enable zh-CN locale
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/locale.gen
-    state: present
-    line: zh_CN.UTF-8 UTF-8
-    backup: true
-
-- name: Enable zh-TW locale
-  become: true
-  ansible.builtin.lineinfile:
-    path: /etc/locale.gen
-    state: present
-    line: zh_TW.UTF-8 UTF-8
-    backup: true
-
-- name: Generate locales
-  become: true
-  ansible.builtin.shell: locale-gen
-
-- name: Use en_US as default locale
-  become: true
-  ansible.builtin.shell: update-locale LANG=en_US.UTF-8

+ 0 - 78
magnolia/roles/ubuntu/tasks/main.yml

@@ -1,78 +0,0 @@
-- name: Update apt cache
-  become: true
-  ansible.builtin.apt:
-    update_cache: true
-    # cache_valid_time: 3600
-
-- name: Install dependicy packages
-  become: true
-  ansible.builtin.apt:
-    pkg:
-      - apt-transport-https
-      - software-properties-common
-      - gnupg
-      - sshpass
-      - rsync
-      - at
-      - sysstat
-      - libtool
-      - ethtool
-      - nethogs
-      - dnsutils
-      - dnsmasq
-      - uuid-runtime
-      - lshw
-      - tcpdump
-      - lm-sensors
-      - dmidecode
-      - net-tools
-      - iputils-arping
-      - iputils-ping
-      - telnet
-      - vim
-      - git
-      - pwgen
-      - locales
-      - ntpdate
-      - tree
-      - wget
-      - curl
-      - zip
-      - unzip
-      - systemd-cron
-      - systemd-timesyncd
-      - systemd-journal-remote
-      - screen
-      - tmux
-      - certbot
-      - python3-certbot-nginx
-
-- name: Set default editor to vim
-  become: true
-  ansible.builtin.shell: update-alternatives --set editor /usr/bin/vim.basic
-
-- name: Set git rebase mode
-  become: true
-  ansible.builtin.shell: git config --global pull.rebase false
-
-- name: setup git to use http v1.1
-  ansible.builtin.shell: git config --global http.version HTTP/1.1
-
-# ---------------------------------------------------
-
-- name: Enable ssh service
-  become: true
-  ansible.builtin.systemd:
-    name: ssh
-    enabled: true
-    masked: false
-
-- name: Enable systemd-timesyncd service
-  become: true
-  ansible.builtin.systemd:
-    name: systemd-timesyncd
-    enabled: true
-    masked: false
-
-- name: Clean system
-  include_tasks: clean.yml