- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml- using inventory:
127.0.0.1 ansible_connection=local| apiVersion: tekton.dev/v1beta1 | |
| kind: Task | |
| metadata: | |
| name: ca-test | |
| spec: | |
| params: | |
| - description: url repo git | |
| name: URL_GIT_SSL | |
| type: string | |
| workspaces: |
ansible-playbook --connection=local 127.0.0.1 playbook.yml127.0.0.1 ansible_connection=localReferences:
| # | |
| # MIGRATE MySQL4 DATABASES TO MySQL5 - Steps for dumping and converting | |
| # | |
| # Uses mysqldump and patches output to be compatible with MySQL 5.5+ (? - no sure | |
| # at which specific release of MySQL 5 the old style syntax support ended). | |
| # | |
| # Conversion is most likely incomplete. It does some essential converting where | |
| # I regularly experienced problems during migration. | |
| # | |
| # Use on own risk, always try with test databases first. No warranty at all! |
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'name'; | |
| $dbuser = 'user'; | |
| $dbpass = 'pass'; | |
| $dbhost = 'host'; | |
| $connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
| #!/bin/bash | |
| # -*- ENCODING: UTF-8 -*- | |
| # | |
| # ------------------------------------------------------------------ | |
| # [Jorge Andrada Prieto] [jandradap@gmail.com] | |
| # Title: update_git_repos.sh | |
| # Fecha: 02/11/2018 | |
| # Description: Update all git repos in the path | |
| # If the repositories are https, need to configure user and pass/token: | |
| # |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| #======================================= | |
| # Part 1 is Setting up the Mirror Server | |
| # Install CPAN::Mini | |
| $ curl -L http://cpanmin.us | perl - --sudo CPAN::Mini | |
| # Select a CPAN Mirror URL from http://mirrors.cpan.org/ | |
| # - We'll use http://cpan.pair.com | |
| # Pick a directory to mirror to, I'll use /var/www/cpan |
| echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf | |
| echo "deb http://archive.debian.org/debian squeeze main contrib non-free" > /etc/apt/sources.list | |
| echo "deb http://archive.debian.org/debian squeeze-lts main contrib non-free" >> /etc/apt/sources.list |